Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / generic / print_options.html
index f8ee3ef..be8343f 100644 (file)
@@ -5,28 +5,56 @@
  <tr>
   <td>
    <table>
+    [%- IF show_headers %]
     <tr>
-     <td>
-      [%- FOREACH row = SELECTS %]
-      [%- IF row.show %]
-      <select name="[% row.sname %]">
+     [%- FOREACH row = SELECTS %]
+     [%- IF row.show %]
+     <th align="left" id="print_options_header_[% row.sname %]">[%- row.hname %]</th>
+     [%- END %]
+     [%- END %]
+     [%- IF display_copies %]
+     <th align="left" id="print_options_header_copies">[% 'Copies' | $T8 %]</th>
+     [%- END %]
+     [%- IF display_groupitems %]
+     <th align="left" id="print_options_header_groupitems">[% 'Group Items' | $T8 %]</th>
+     [%- END %]
+     [%- IF display_bothsided %]
+     <th align="left" id="print_options_header_bothsided">[% 'Both-sided' | $T8 %]</th>
+     [%- END %]
+     [%- IF display_remove_draft %]
+     <th align="left" id="print_options_header_remove_draft">[% 'Remove Draft' | $T8 %]</th>
+     [%- END %]
+    </tr>
+    [%- END %]
+    <tr>
+     [%- FOREACH row = SELECTS %]
+     [%- IF row.show %]
+     <td id="print_options_input_[% row.sname %]">
+      <select name="[%- name_prefix %][%- row.sname %]" id="[%- id_prefix %][%- row.sname %]">
        [%- FOREACH data = row.DATA %]
-       <option value="[% data.value %]" [% data.selected %]>[% data.oname %]</option>
+        <option value="[% data.value %]" [% data.selected %]>[% data.oname %]</option>
        [%- END %]
       </select>
-      [%- END %]
-      [%- END %]
      </td>
+     [%- END %]
+     [%- END %]
      [%- IF display_copies %]
-     <td>[% 'Copies' | $T8 %] <input name="copies" size="2" value="[% HTML.escape(copies) %]"></td>
+     <td id="print_options_input_copies">[%- IF !show_headers %][%- 'Copies' | $T8 %][%- END %]<input name="[%- name_prefix %]copies" id="[% id_prefix %]copies" size="2" value="[% HTML.escape(copies) %]"></td>
      [%- END %]
      [%- IF display_groupitems %]
-     <td>[% 'Group Items' | $T8 %]</td>
-     <td><input name="groupitems" type="checkbox" class="checkbox" [% groupitems_checked %]></td>
+     <td id="print_options_input_groupitems">[%- IF !show_headers %][% 'Group Items' | $T8 %][%- END %]
+      <input name="[%- name_prefix %]groupitems" id="[% id_prefix %]groupitems" type="checkbox" class="checkbox" [% groupitems_checked %]>
+     </td>
+     [%- END %]
+     [%- IF display_bothsided %]
+     <td id="print_options_input_bothsided">[%- IF !show_headers %][% 'Both-sided' | $T8 %][%- END %]
+      <input name="[%- name_prefix %]bothsided" id="[% id_prefix %]bothsided" type="checkbox" class="checkbox" [% bothsided_checked %]>
+     </td>
      [%- END %]
      [%- IF display_remove_draft %]
-     <td>[% 'Remove Draft' | $T8 %]</td>
-     <td><input name="remove_draft" type="checkbox" class="checkbox" [% remove_draft_checked %]></td>
+     <td id="print_options_input_remove_draft">[%- IF !show_headers %][% 'Remove Draft' | $T8 %][%- END %]
+      <input name="[%- name_prefix %]remove_draft" id="[% id_prefix %]remove_draft" type="checkbox" class="checkbox" [% remove_draft_checked %]>
+     </td>
      [%- END %]
     </tr>
    </table>
@@ -36,4 +64,3 @@
   </td>
  </tr>
 </table>
-