X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=templates%2Fwebpages%2Fcommon%2F_send_email_dialog.html;h=36713ea4ac9c6a571fd1a77f6b173d4fe0a4a710;hb=4aa438985bc3b8d48c1350fe729c1ee25548b613;hp=e875af6b4695d3ff49d5f512b154a751b49174bb;hpb=d51b3011755b4a7e006f433d9fe5836a22a69638;p=kivitendo-erp.git
diff --git a/templates/webpages/common/_send_email_dialog.html b/templates/webpages/common/_send_email_dialog.html
index e875af6b4..36713ea4a 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 %]
@@ -12,7 +12,11 @@
[% END %]
|
- [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]
+ [% IF checked %]
+ [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]
+ [% ELSE %]
+ [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="0") %]
+ [% END %]
|
[% END %]
@@ -23,10 +27,14 @@
- [% 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 ) %]
[+]
[-]
|
@@ -83,14 +91,17 @@
[% IF INSTANCE_CONF.get_doc_storage %]
[% PROCESS attach_file_list
files = FILES.files
+ checked = INSTANCE_CONF.get_email_attachment_record_files_checked
label = LxERP.t8("Record's files") %]
[% PROCESS attach_file_list
files = FILES.vc_files
+ checked = INSTANCE_CONF.get_email_attachment_vc_files_checked
label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
[% PROCESS attach_file_list
files = FILES.part_files
+ checked = INSTANCE_CONF.get_email_attachment_part_files_checked
label = LxERP.t8("Files from parts") %]
[% END %]
@@ -99,6 +110,6 @@
- [% L.button_tag("kivi.SalesPurchase.send_email()", LxERP.t8("Send email")) %]
+ [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
[% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort")) %]