E-Mail-Dialog: Cc, Bcc standardmäßig verstecken; Dateianhang nach unten
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 16:48:25 +0000 (17:48 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 16:48:25 +0000 (17:48 +0100)
Wichtige Felder sollen damit näher zusammenrücken, und unwichtige
Felder normalerweise gar nicht erst angezeigt werden.

templates/webpages/common/_send_email_dialog.html

index 20d8b2d..c45313b 100644 (file)
@@ -3,17 +3,23 @@
 <table>
  <tbody>
   <tr>
-   <th align="right" nowrap>[% LxERP.t8("To") %]</th>
-   <td>[% L.input_tag("email_form.to", email_form.to, size="80") %]</td>
+   <th align="right" nowrap>
+    [% LxERP.t8("Recipients") %]
+   </th>
+   <td>
+    [% 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") %]
+   </td>
   </tr>
 
-  <tr>
+  <tr class="hidden" data-toggle-recipients="1">
    <th align="right" nowrap>[% LxERP.t8("Cc") %]</th>
    <td>[% L.input_tag("email_form.cc", email_form.cc, size="80") %]</td>
   </tr>
 
  [%- IF show_bcc %]
-  <tr>
+  <tr class="hidden" data-toggle-recipients="1">
    <th align="right" nowrap>[% LxERP.t8("Bcc") %]</th>
    <td>[% L.input_tag("email_form.bcc", email_form.bcc, size="80") %]</td>
   </tr>
    <td>[% L.input_tag("email_form.subject", email_form.subject, size="80") %]</td>
   </tr>
 
-  <tr>
-   <th align="right" nowrap>[% LxERP.t8("Attachment name") %]</th>
-   <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %]</td>
-  </tr>
-
   <tr valign="top">
    <th align="right" nowrap>[% LxERP.t8("Message") %]</th>
    <td>[% L.textarea_tag("email_form.message", email_form.message, rows="15" cols="80" wrap="soft") %]</td>
   </tr>
+
+  <tr>
+   <th align="right" nowrap>[% LxERP.t8("Attachment name") %]</th>
+   <td>[% L.input_tag("email_form.attachment_filename", email_form.attachment_filename, size="80") %]</td>
+  </tr>
  </tbody>
 </table>