6 <div class="listtop">[% title %]</div>
8 <form name="Form" action="oe.pl" method="post">
13 <th align="right">[% LxERP.t8('Status') %]</th>
14 <td>[% L.checkbox_tag("active", checked => active, label => LxERP.t8('Active')) %]</td>
20 [% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => terminated) %]
25 <th align="right" valign="top">[%- LxERP.t8('Periodicity') %]</th>
27 [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"), checked => periodicity == 'm') %]
29 [% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("quarterly"), checked => periodicity == 'q') %]
31 [% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"), checked => periodicity == 'y') %]
36 <th align="right">[%- LxERP.t8('Start date') %]</th>
38 [% L.date_tag("start_date_as_date", start_date_as_date) %]
43 <th align="right">[%- LxERP.t8('End date') %]<sup>(1)</sup></th>
45 [% L.date_tag("end_date_as_date", end_date_as_date) %]
50 <th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
52 [% L.input_tag("extend_automatically_by", extend_automatically_by, size => 10) %]
57 <th align="right">[%- LxERP.t8('Record in') %]</th>
59 [% L.select_tag("ar_chart_id", L.options_for_select(AR, title => 'description', default => ar_chart_id)) %]
64 <th align="right">[%- LxERP.t8('Print automatically') %]</th>
66 [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
71 <th align="right">[%- LxERP.t8('Printer') %]</th>
73 [% L.select_tag("printer_id", L.options_for_select(ALL_PRINTERS, title => 'printer_description', default => printer_id), disabled => !print) %]
78 <th align="right">[%- LxERP.t8('Copies') %]</th>
79 <td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
86 <p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
88 [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
91 [% L.submit_tag('', LxERP.t8('Close')) %]
92 [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
96 <script type="text/javascript">
98 function toggle_printer_id_ctrl() {
99 var disabled = !$('#print').attr('checked');
100 $('#printer_id').attr('disabled', disabled);
101 $('#copies').attr('disabled', disabled);