]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/common/_send_email_dialog.html
date error in mapping
[mfinanz.git] / templates / webpages / common / _send_email_dialog.html
index b039b253fc2b874930d41f823f2769a4471b67b8..bf4ccd9ff40bae10dbd9da2379587192c85e53fd 100644 (file)
   [% END %]
 [% END %]
 
+[%- IF is_final_version %]
+  <div class="flash_message_warning">[% LxERP.t8('This record is the final version. Changes have not been saved') %]</div>
+[%- END %]
+
 <table>
  <tbody>
   <tr>
    </td>
   </tr>
 
+  [%- IF ALL_PARTNER_EMAIL_ADDRESSES.size %]
+   [%- FOREACH email = ALL_PARTNER_EMAIL_ADDRESSES %]
+    <tr class="hidden" data-toggle-recipients="1">
+     <th align="right" nowrap>
+      [%- IF loop.first %]
+       [% LxERP.t8("Other recipients") %]
+      [%- END %]
+     </th>
+     <td>
+       [% P.checkbox_tag("email_form.additional_to[]", label=email, value=email, checked="0") %]
+     </td>
+    </tr>
+   [%- END %]
+  [%- END %]
+
  [%- IF ALL_EMPLOYEES.size %]
   <tr class="hidden" data-toggle-recipients="1">
    <th align="right" nowrap>[% LxERP.t8("CC to Employee") %]</th>
    <th align="right" nowrap>[% LxERP.t8("Message") %]
     <sup> [% 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") %]</sup>
   </th>
-   <td>[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %]</td>
+   <td>[% L.textarea_tag("email_form.message", email_form.message, style="height:150px", class="texteditor texteditor-space-for-toolbar") %]</td>
   </tr>
 
 [% 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       = [
+    [% 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") ],
              [ "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()") %]
    </td>
   </tr>
 [% END %]