+
+[% IF INSTANCE_CONF.get_doc_storage %]
+ <tr>
+ <th align="right" nowrap>[% LxERP.t8("Send printout of record") %]</th>
+ <td>
+ [% 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()") %]
+ </td>
+ </tr>
+[% END %]
+
+ <tr>
+ <th align="right" nowrap>
+[% IF !INSTANCE_CONF.get_doc_storage %]
+ [% LxERP.t8("Attachment name") %]
+[% END %]
+ </th>
+ <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %]</td>
+ </tr>
+
+[% 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 %]