Update jQuery auf 1.9.1, jQuery-UI auf 1.10.1
[kivitendo-erp.git] / templates / webpages / oe / edit_periodic_invoices_config.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4
5  <div class="listtop">[% title %]</div>
6
7  <form name="Form" action="oe.pl" method="post">
8
9   <p>
10    <table border="0">
11     <tr>
12      <th align="right">[% LxERP.t8('Status') %]</th>
13      <td>[% L.checkbox_tag("active", checked => active, label => LxERP.t8('Active')) %]</td>
14     </tr>
15
16     <tr>
17      <td>&nbsp;</td>
18      <td>
19       [% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => terminated) %]
20      </td>
21     </tr>
22
23     <tr>
24      <th align="right" valign="top">[%- LxERP.t8('Periodicity') %]</th>
25      <td valign="top">
26       [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"),   checked => periodicity == 'm') %]
27       <br>
28       [% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("quarterly"), checked => periodicity == 'q') %]
29       <br>
30       [% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"),    checked => periodicity == 'y') %]
31      </td>
32     </tr>
33
34     <tr>
35      <th align="right">[%- LxERP.t8('Start date') %]</th>
36      <td valign="top">
37       [% L.date_tag("start_date_as_date", start_date_as_date) %]
38      </td>
39     </tr>
40
41     <tr>
42      <th align="right">[%- LxERP.t8('End date') %]<sup>(1)</sup></th>
43      <td valign="top">
44       [% L.date_tag("end_date_as_date", end_date_as_date) %]
45      </td>
46     </tr>
47
48     <tr>
49      <th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
50      <td valign="top">
51       [% L.input_tag("extend_automatically_by", extend_automatically_by, size => 10) %]
52      </td>
53     </tr>
54
55     <tr>
56      <th align="right">[%- LxERP.t8('Record in') %]</th>
57      <td valign="top">
58       [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id) %]
59      </td>
60     </tr>
61
62     <tr>
63      <th align="right">[%- LxERP.t8('Print automatically') %]</th>
64      <td valign="top">
65       [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
66      </td>
67     </tr>
68
69     <tr>
70      <th align="right">[%- LxERP.t8('Printer') %]</th>
71      <td valign="top">
72       [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print) %]
73      </td>
74     </tr>
75
76     <tr>
77      <th align="right">[%- LxERP.t8('Copies') %]</th>
78      <td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
79     </tr>
80    </table>
81   </p>
82
83   <hr>
84
85   <p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
86
87   [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
88
89   <p>
90    [% L.submit_tag('', LxERP.t8('Close')) %]
91    [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
92   </p>
93  </form>
94
95  <script type="text/javascript">
96   <!--
97     function toggle_printer_id_ctrl() {
98       var disabled = !$('#print').prop('checked');
99       $('#printer_id').prop('disabled', disabled);
100       $('#copies').prop('disabled', disabled);
101     }
102     -->
103  </script>