6 <div class="listtop">[% title %]</div>
8 <form name="Form" action="oe.pl" method="post">
13 <th align="right">[%- LxERP.t8('Active') %]</th>
14 <td>[% L.checkbox_tag("active", checked => active) %]</td>
18 <th align="right" valign="top">[%- LxERP.t8('Periodicity') %]</th>
20 [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"), checked => periodicity == 'm') %]
22 [% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("quarterly"), checked => periodicity == 'q') %]
24 [% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"), checked => periodicity == 'y') %]
29 <th align="right">[%- LxERP.t8('Start date') %]</th>
31 [% L.date_tag("start_date", start_date) %]
36 <th align="right">[%- LxERP.t8('Record in') %]</th>
38 [% L.select_tag("ar_chart_id", L.options_for_select(AR, title => 'description', default => ar_chart_id)) %]
43 <th align="right">[%- LxERP.t8('Print automatically') %]</th>
45 [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
50 <th align="right">[%- LxERP.t8('Printer') %]</th>
52 [% L.select_tag("printer_id", L.options_for_select(ALL_PRINTERS, title => 'printer_description', default => printer_id), disabled => !print) %]
57 <th align="right">[%- LxERP.t8('Copies') %]</th>
58 <td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
63 [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
66 [% L.submit_tag('', LxERP.t8('Close')) %]
67 [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
71 <script type="text/javascript">
73 function toggle_printer_id_ctrl() {
74 var disabled = !$('#print').attr('checked');
75 $('#printer_id').attr('disabled', disabled);
76 $('#copies').attr('disabled', disabled);