Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / buchungsgruppen / form.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- USE P -%]
2 [% SET style="width: 400px" %]
3
4 <h1>[% HTML.escape(title) %]</h1>
5
6 <form action="controller.pl" method="post" id="form">
7 [%- L.hidden_tag("id", SELF.config.id) %]
8
9 <table>
10   <tr>
11     <th align="right">[% 'Description' | $T8 %]</th>
12     <td>[%- L.input_tag("config.description", SELF.config.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %]</td>
13   </tr>
14   <tr>
15     <th align="right">[% 'Inventory Account' | $T8 %]</th>
16     [%- IF NOT SELF.config.id %]
17     <td>[% P.chart.picker("config.inventory_accno_id", SELF.defaults.inventory_accno_id, choose=1, type='IC', style=style) %]</td>
18     [%- ELSIF SELF.config.id AND SELF.config.orphaned %]
19     <td>[% P.chart.picker("config.inventory_accno_id", SELF.config.inventory_accno_id, choose=1, type='IC', style=style) %]</td>
20     [%- ELSE %]
21       <td>[%- CHARTLIST.inventory_accno_description %]</td>
22     [%- END %]
23   </tr>
24 [%- FOREACH tz = TAXZONES %]
25   <tr>
26     <th align="right">[% 'Revenue' | $T8 %] [% HTML.escape(tz.description) %]</th>
27     [%- IF NOT SELF.config.id %]
28     <td>[% P.chart.picker('income_accno_id_' _ tz.id, SELF.defaults.income_accno_id, choose=1, type='IC_income,IC_sale', style=style) %]</td>
29     [%- ELSIF SELF.config.id AND SELF.config.orphaned %]
30     <td>[% P.chart.picker('income_accno_id_' _ tz.id, CHARTLIST.${tz.id}.income_accno_id, choose=1, type='IC_income,IC_sale', style=style) %]</td>
31     [%- ELSE %]
32       <td>[% CHARTLIST.${tz.id}.income_accno_description %]</td>
33     [%- END %]
34   </tr>
35   <tr>
36     <th align="right">[% 'Expense' | $T8 %] [% HTML.escape(tz.description) %]</th>
37     [%- IF NOT SELF.config.id %]
38       <td>[% P.chart.picker('expense_accno_id_' _ tz.id, SELF.defaults.expense_accno_id, choose=1, type='IC_expense,IC_cogs', style=style) %]</td>
39     [%- ELSIF SELF.config.id AND SELF.config.orphaned %]
40       <td>[% P.chart.picker('expense_accno_id_' _ tz.id, CHARTLIST.${tz.id}.expense_accno_id, choose=1, type='IC_expense,IC_cogs', style=style) %]</td>
41     [%- ELSE %]
42       <td>[% CHARTLIST.${tz.id}.expense_accno_description %]</td>
43     [%- END %]
44   </tr>
45 [%- END %]
46 </table>
47 </form>