X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/bcc18db1e4de520a6d6d1ce0378516b2c390ee81..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 36713ea4a..bf4ccd9ff 100644 --- a/templates/webpages/common/_send_email_dialog.html +++ b/templates/webpages/common/_send_email_dialog.html @@ -23,6 +23,10 @@ [% END %] [% END %] +[%- IF is_final_version %] +
[% LxERP.t8('This record is the final version. Changes have not been saved') %]
+[%- END %] + @@ -40,6 +44,28 @@ + [%- IF ALL_PARTNER_EMAIL_ADDRESSES.size %] + [%- FOREACH email = ALL_PARTNER_EMAIL_ADDRESSES %] + + + + + [%- END %] + [%- END %] + + [%- IF ALL_EMPLOYEES.size %] + + + + + [%- END %] + @@ -61,20 +87,27 @@ - + [% IF INSTANCE_CONF.get_doc_storage %] [% END %] @@ -103,6 +136,10 @@ files = FILES.part_files checked = INSTANCE_CONF.get_email_attachment_part_files_checked label = LxERP.t8("Files from parts") %] + + [% PROCESS attach_file_list + files = FILES.project_files + label = LxERP.t8("Files from projects") %] [% END %]
[% 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()") %]
@@ -110,6 +147,6 @@

- [% L.button_tag(email_form.js_send_function, 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")) %]