5 <div class="listtop">[% title %]</div>
7 <form name="Form" action="oe.pl" method="post">
12 <th align="right">[% LxERP.t8('Status') %]</th>
13 <td>[% L.checkbox_tag("active", checked => active, label => LxERP.t8('Active')) %]</td>
19 [% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => terminated) %]
24 <th align="right" valign="top">[%- LxERP.t8('Periodicity') %]</th>
26 [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"), checked => periodicity == 'm') %]
28 [% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("every third month"), checked => periodicity == 'q') %]
30 [% L.radio_button_tag("periodicity", value => "b", label => LxERP.t8("semiannually"), checked => periodicity == 'b') %]
32 [% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"), checked => periodicity == 'y') %]
37 <th align="right">[%- LxERP.t8('Start date') %]</th>
39 [% L.date_tag("start_date_as_date", start_date_as_date) %]
44 <th align="right">[%- LxERP.t8('End date') %]<sup>(1)</sup></th>
46 [% L.date_tag("end_date_as_date", end_date_as_date) %]
51 <th align="right">[%- LxERP.t8('Create first invoice on') %]<sup>(2)</sup></th>
53 [% L.date_tag("first_billing_date_as_date", first_billing_date_as_date) %]
58 <th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
60 [% L.input_tag("extend_automatically_by", extend_automatically_by, size => 10) %]
65 <th align="right">[%- LxERP.t8('Record in') %]</th>
67 [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id) %]
72 <th align="right">[%- LxERP.t8('Print automatically') %]</th>
74 [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
79 <th align="right">[%- LxERP.t8('Printer') %]</th>
81 [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print) %]
86 <th align="right">[%- LxERP.t8('Copies') %]</th>
87 <td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
94 <p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
95 <p>(2): [% LxERP.t8("If missing then the start date will be used.") %]</p>
97 [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
100 [% L.submit_tag('', LxERP.t8('Close')) %]
101 [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
105 <script type="text/javascript">
107 function toggle_printer_id_ctrl() {
108 var disabled = !$('#print').prop('checked');
109 $('#printer_id').prop('disabled', disabled);
110 $('#copies').prop('disabled', disabled);