Revision e5c9bf7d
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/buchungsgruppen/form.html | ||
---|---|---|
9 | 9 |
<h1>[% HTML.escape(title) %]</h1> |
10 | 10 |
|
11 | 11 |
<form action="controller.pl" method="post" id="form"> |
12 |
[%- L.hidden_tag("id", SELF.config.id) %] |
|
12 |
[% L.hidden_tag("id", SELF.config.id) %] |
|
13 |
|
|
14 |
<div class="wrapper"> |
|
15 |
|
|
16 |
<table class="tbl-horizontal"> |
|
17 |
<caption>[% 'Entry Group' | $T8 %]</caption> |
|
18 |
<tbody> |
|
19 |
<tr> |
|
20 |
<th>[% 'Description' | $T8 %]</th> |
|
21 |
<td>[% L.input_tag("config.description", SELF.config.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %]</td> |
|
22 |
</tr> |
|
23 |
<tr> |
|
24 |
<th>[% 'Inventory Account' | $T8 %]</th> |
|
25 |
[% IF NOT SELF.config.id %] |
|
26 |
<td>[% P.chart.picker("config.inventory_accno_id", SELF.defaults.inventory_accno_id, choose=1, type='IC', style=style) %]</td> |
|
27 |
[% ELSIF SELF.config.id AND SELF.config.orphaned %] |
|
28 |
<td>[% P.chart.picker("config.inventory_accno_id", SELF.config.inventory_accno_id, choose=1, type='IC', style=style) %]</td> |
|
29 |
[% ELSE %] |
|
30 |
<td>[% CHARTLIST.inventory_accno_description %]</td> |
|
31 |
[% END %] |
|
32 |
</tr> |
|
33 |
[% FOREACH tz = TAXZONES %] |
|
34 |
<tr> |
|
35 |
<th>[% 'Revenue' | $T8 %]</th><th>[% HTML.escape(tz.description) %]</th> |
|
36 |
[% IF NOT SELF.config.id %] |
|
37 |
<td>[% P.chart.picker('income_accno_id_' _ tz.id, SELF.defaults.income_accno_id, choose=1, type='IC_income,IC_sale', style=style) %]</td> |
|
38 |
[% ELSIF SELF.config.id AND SELF.config.orphaned %] |
|
39 |
<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> |
|
40 |
[% ELSE %] |
|
41 |
<td>[% CHARTLIST.${tz.id}.income_accno_description %]</td> |
|
42 |
[% END %] |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<th>[% 'Expense' | $T8 %]</th><th>[% HTML.escape(tz.description) %]</th> |
|
46 |
[% IF NOT SELF.config.id %] |
|
47 |
<td>[% P.chart.picker('expense_accno_id_' _ tz.id, SELF.defaults.expense_accno_id, choose=1, type='IC_expense,IC_cogs', style=style) %]</td> |
|
48 |
[% ELSIF SELF.config.id AND SELF.config.orphaned %] |
|
49 |
<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> |
|
50 |
[% ELSE %] |
|
51 |
<td>[% CHARTLIST.${tz.id}.expense_accno_description %]</td> |
|
52 |
[% END %] |
|
53 |
</tr> |
|
54 |
[% END %] |
|
55 |
<tbody> |
|
56 |
</table> |
|
57 |
|
|
58 |
</div><!-- /.wrapper --> |
|
13 | 59 |
|
14 |
<table> |
|
15 |
<tr> |
|
16 |
<th align="right">[% 'Description' | $T8 %]</th> |
|
17 |
<td>[%- L.input_tag("config.description", SELF.config.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %]</td> |
|
18 |
</tr> |
|
19 |
<tr> |
|
20 |
<th align="right">[% 'Inventory Account' | $T8 %]</th> |
|
21 |
[%- IF NOT SELF.config.id %] |
|
22 |
<td>[% P.chart.picker("config.inventory_accno_id", SELF.defaults.inventory_accno_id, choose=1, type='IC', style=style) %]</td> |
|
23 |
[%- ELSIF SELF.config.id AND SELF.config.orphaned %] |
|
24 |
<td>[% P.chart.picker("config.inventory_accno_id", SELF.config.inventory_accno_id, choose=1, type='IC', style=style) %]</td> |
|
25 |
[%- ELSE %] |
|
26 |
<td>[%- CHARTLIST.inventory_accno_description %]</td> |
|
27 |
[%- END %] |
|
28 |
</tr> |
|
29 |
[%- FOREACH tz = TAXZONES %] |
|
30 |
<tr> |
|
31 |
<th align="right">[% 'Revenue' | $T8 %] [% HTML.escape(tz.description) %]</th> |
|
32 |
[%- IF NOT SELF.config.id %] |
|
33 |
<td>[% P.chart.picker('income_accno_id_' _ tz.id, SELF.defaults.income_accno_id, choose=1, type='IC_income,IC_sale', style=style) %]</td> |
|
34 |
[%- ELSIF SELF.config.id AND SELF.config.orphaned %] |
|
35 |
<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> |
|
36 |
[%- ELSE %] |
|
37 |
<td>[% CHARTLIST.${tz.id}.income_accno_description %]</td> |
|
38 |
[%- END %] |
|
39 |
</tr> |
|
40 |
<tr> |
|
41 |
<th align="right">[% 'Expense' | $T8 %] [% HTML.escape(tz.description) %]</th> |
|
42 |
[%- IF NOT SELF.config.id %] |
|
43 |
<td>[% P.chart.picker('expense_accno_id_' _ tz.id, SELF.defaults.expense_accno_id, choose=1, type='IC_expense,IC_cogs', style=style) %]</td> |
|
44 |
[%- ELSIF SELF.config.id AND SELF.config.orphaned %] |
|
45 |
<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> |
|
46 |
[%- ELSE %] |
|
47 |
<td>[% CHARTLIST.${tz.id}.expense_accno_description %]</td> |
|
48 |
[%- END %] |
|
49 |
</tr> |
|
50 |
[%- END %] |
|
51 |
</table> |
|
52 | 60 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/buchungsgruppen/form.html