Rechnungsversand per E-Mail
[kivitendo-erp.git] / templates / webpages / common / _send_email_dialog.html
index 51565a6..3b00f1a 100644 (file)
  <tbody>
   <tr>
    <th align="right" nowrap>
-    [% LxERP.t8("Recipients") %]
+    [% IF is_invoice_mail  %]
+      [% LxERP.t8("Invoice to:") %]
+    [% ELSE %]
+      [% LxERP.t8("Recipients") %]
+    [% END %]
    </th>
    <td>
-    [% 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 ) %]
     <span class="interactive cursor-pointer"        onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[+]</span>
     <span class="interactive cursor-pointer hidden" onclick="$('[data-toggle-recipients=1]').toggle()" data-toggle-recipients="1">[-]</span>
    </td>
@@ -50,7 +54,9 @@
   </tr>
 
   <tr valign="top">
-   <th align="right" nowrap>[% LxERP.t8("Message") %]</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>
   </tr>
 
 <div id="email_form_print_options"></div>
 
 <p>
- [% 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")) %]
 </p>