X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcommon%2F_send_email_dialog.html;h=51565a6f31879da9e6335dcea7e1d1502b88b5fb;hb=c0f873c1ffccfd565995500b459d53bba394c04d;hp=c45313ba705bf4142d4532a5cbef84950f95c7ab;hpb=9fe5b41d815d8e4843b40586a2e6b4c5bcd16fba;p=kivitendo-erp.git diff --git a/templates/webpages/common/_send_email_dialog.html b/templates/webpages/common/_send_email_dialog.html index c45313ba7..51565a6f3 100644 --- a/templates/webpages/common/_send_email_dialog.html +++ b/templates/webpages/common/_send_email_dialog.html @@ -1,4 +1,23 @@ -[%- 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 %] + + + [% IF loop.first %] + [% label %] + [% END %] + + + [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %] + + + [% END %] + [% END %] +[% END %] @@ -8,8 +27,8 @@ @@ -35,10 +54,43 @@ +[% IF INSTANCE_CONF.get_doc_storage %] + + + + +[% END %] + - + + +[% IF INSTANCE_CONF.get_doc_storage %] + [% PROCESS attach_file_list + files = FILES.files + label = LxERP.t8("Record's files") %] + + [% PROCESS attach_file_list + files = FILES.vc_files + label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %] + + [% PROCESS attach_file_list + files = FILES.part_files + label = LxERP.t8("Files from parts") %] +[% END %]
[% L.input_tag("email_form.to", email_form.to, size="80") %] - [% L.link("#", "[+]", onclick="\$('[data-toggle-recipients=1]').toggle()", "data-toggle-recipients"="1") %] - [% L.link("#", "[-]", onclick="\$('[data-toggle-recipients=1]').toggle()", "data-toggle-recipients"="1", class="hidden") %] + [+] +
[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %]
[% 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("Attachment name") %] +[% IF !INSTANCE_CONF.get_doc_storage %] + [% LxERP.t8("Attachment name") %] +[% END %] + [% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %]