Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git] / templates / webpages / oe / edit_periodic_invoices_config.html
index c469a02..5a36172 100644 (file)
@@ -1,7 +1,6 @@
 [% USE HTML %]
 [% USE LxERP %]
 [% USE L %]
-<body>
 
  <div class="listtop">[% title %]</div>
 
@@ -56,7 +55,7 @@
     <tr>
      <th align="right">[%- LxERP.t8('Record in') %]</th>
      <td valign="top">
-      [% L.select_tag("ar_chart_id", L.options_for_select(AR, title => 'description', default => ar_chart_id)) %]
+      [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id) %]
      </td>
     </tr>
 
@@ -70,7 +69,7 @@
     <tr>
      <th align="right">[%- LxERP.t8('Printer') %]</th>
      <td valign="top">
-      [% L.select_tag("printer_id", L.options_for_select(ALL_PRINTERS, title => 'printer_description', default => printer_id), disabled => !print) %]
+      [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print) %]
      </td>
     </tr>
 
  <script type="text/javascript">
   <!--
     function toggle_printer_id_ctrl() {
-      var disabled = !$('#print').attr('checked');
-      $('#printer_id').attr('disabled', disabled);
-      $('#copies').attr('disabled', disabled);
+      var disabled = !$('#print').prop('checked');
+      $('#printer_id').prop('disabled', disabled);
+      $('#copies').prop('disabled', disabled);
     }
     -->
  </script>
-
-</body>
-</html>