X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d51b3011755b4a7e006f433d9fe5836a22a69638..HEAD:/templates/webpages/common/_send_email_dialog.html diff --git a/templates/webpages/common/_send_email_dialog.html b/templates/webpages/common/_send_email_dialog.html index e875af6b4..bf4ccd9ff 100644 --- a/templates/webpages/common/_send_email_dialog.html +++ b/templates/webpages/common/_send_email_dialog.html @@ -3,7 +3,7 @@ [% BLOCK attach_file_list %] [% IF files.as_list.size %] - [% SET have_files = 1 ; + [% SET have_files = 1; FOREACH file = files.as_list %]
| - [% LxERP.t8("Recipients") %] + [% IF is_invoice_mail %] + [% LxERP.t8("Invoice to:") %] + [% ELSE %] + [% LxERP.t8("Recipients") %] + [% END %] | - [% L.input_tag("email_form.to", email_form.to, size="80") %] + [% L.input_tag("email_form.to", email_form.to, size="80",readonly=is_invoice_mail ) %] [+] | |||
|---|---|---|---|---|
| + [%- IF loop.first %] + [% LxERP.t8("Other recipients") %] + [%- END %] + | ++ [% P.checkbox_tag("email_form.additional_to[]", label=email, value=email, checked="0") %] + | +|||
| [% LxERP.t8("CC to Employee") %] | +[% L.select_tag('email_form.cc_employee', ALL_EMPLOYEES, value_key='login' title_key='safe_name', with_empty=1, style=style) %] | +|||
| [% LxERP.t8("Cc") %] | [% L.input_tag("email_form.cc", email_form.cc, size="80") %] | @@ -53,20 +87,27 @@[% LxERP.t8("Message") %] [% L.link("generictranslations.pl?action=edit_email_strings", "1)", title=LxERP.t8('Tired of copying always nice phrases for this message? Click here to use the new preset message option!'), target="_blank") %] | -[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %] | +[% L.textarea_tag("email_form.message", email_form.message, style="height:150px", class="texteditor texteditor-space-for-toolbar") %] |
| [% LxERP.t8("Send printout of record") %] | - [% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") ; - options = [ + [% SET no_file_label = have_files ? LxERP.t8("Don't include a printout of the record with the email, only selected files") : LxERP.t8("Don't include a printout of the record with the email") %] + [%- IF is_final_version %] + [% options = [ + [ "old_file", LxERP.t8("Send the last version for this record") ], + [ "no_file", no_file_label ], + ] %] + [%- ELSE %] + [% options = [ + [ "old_file", LxERP.t8("Send the last or create the first version for this record") ], [ "normal", LxERP.t8("Create and send a new printout for this record") ], - [ "old_file", LxERP.t8("Send the last printout created for this record") ], [ "no_file", no_file_label ], - ] ; - L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()") %] + ] %] + [%- END %] + [% L.select_tag("email_form.attachment_policy", options, onchange="kivi.SalesPurchase.activate_send_email_actions_regarding_printout()") %] |
- [% L.button_tag("kivi.SalesPurchase.send_email()", LxERP.t8("Send email")) %] + [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email"), id='send_email') %] [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort")) %]