X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/22bcb6b18c5832dad188a72ed75cd98c38d299e3..8ec984acf7c46bde9a1da0e060503218e33e5b25:/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 20d8b2d77..e875af6b4 100644 --- a/templates/webpages/common/_send_email_dialog.html +++ b/templates/webpages/common/_send_email_dialog.html @@ -1,19 +1,44 @@ -[%- USE HTML %][%- USE LxERP -%][%- USE L -%] +[%- USE HTML %][%- USE LxERP -%][%- USE L -%][%- USE P -%] +[%- SET have_files = 0 %] + +[% BLOCK attach_file_list %] + [% IF files.as_list.size %] + [% SET have_files = 1 ; + FOREACH file = files.as_list %] +
| [% LxERP.t8("To") %] | -[% L.input_tag("email_form.to", email_form.to, size="80") %] | ++ [% LxERP.t8("Recipients") %] + | ++ [% L.input_tag("email_form.to", email_form.to, size="80") %] + [+] + + |
|---|---|---|---|
| [% LxERP.t8("Cc") %] | [% L.input_tag("email_form.cc", email_form.cc, size="80") %] | ||
| [% LxERP.t8("Bcc") %] | [% L.input_tag("email_form.bcc", email_form.bcc, size="80") %] | [% L.input_tag("email_form.subject", email_form.subject, size="80") %] | +|
| [% 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") %] | +||
| [% LxERP.t8("Attachment name") %] | -[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %] | +[% 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 = [ + [ "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()") %] + |
| [% LxERP.t8("Message") %] | -[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %] | +||
| +[% IF !INSTANCE_CONF.get_doc_storage %] + [% LxERP.t8("Attachment name") %] +[% END %] + | +[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %] |