Bearbeiten der Konfiguration für wiederkehrende Rechnungen implementiert
[kivitendo-erp.git] / templates / webpages / oe / edit_periodic_invoices_config.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4 <body>
5
6  <div class="listtop">[% title %]</div>
7
8  <form name="Form" action="oe.pl" method="post">
9
10   <p>
11    <table border="0">
12     <tr>
13      <th align="right">[%- LxERP.t8('Active') %]</th>
14      <td>[% L.checkbox_tag("active", checked => active) %]</td>
15     </tr>
16
17     <tr>
18      <th align="right" valign="top">[%- LxERP.t8('Periodicity') %]</th>
19      <td valign="top">
20       [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"),   checked => periodicity == 'm') %]
21       <br>
22       [% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("quarterly"), checked => periodicity == 'q') %]
23       <br>
24       [% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"),    checked => periodicity == 'y') %]
25      </td>
26     </tr>
27
28     <tr>
29      <th align="right">[%- LxERP.t8('Start date') %]</th>
30      <td valign="top">
31       [% L.date_tag("start_date", start_date) %]
32      </td>
33     </tr>
34
35     <tr>
36      <th align="right">[%- LxERP.t8('Record in') %]</th>
37      <td valign="top">
38       [% L.select_tag("ar_chart_id", L.options_for_select(AR, title => 'description', default => ar_chart_id)) %]
39      </td>
40     </tr>
41
42     <tr>
43      <th align="right">[%- LxERP.t8('Print automatically') %]</th>
44      <td valign="top">
45       [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
46      </td>
47     </tr>
48
49     <tr>
50      <th align="right">[%- LxERP.t8('Printer') %]</th>
51      <td valign="top">
52       [% L.select_tag("printer_id", L.options_for_select(ALL_PRINTERS, title => 'printer_description', default => printer_id), disabled => !print) %]
53      </td>
54     </tr>
55
56     <tr>
57      <th align="right">[%- LxERP.t8('Copies') %]</th>
58      <td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
59     </tr>
60    </table>
61   </p>
62
63   [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
64
65   <p>
66    [% L.submit_tag('', LxERP.t8('Close')) %]
67    [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
68   </p>
69  </form>
70
71  <script type="text/javascript">
72   <!--
73     function toggle_printer_id_ctrl() {
74       var disabled = !$('#print').attr('checked');
75       $('#printer_id').attr('disabled', disabled);
76       $('#copies').attr('disabled', disabled);
77     }
78     -->
79  </script>
80
81 </body>
82 </html>