Revision 8847b39a
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/payment_term/form.html | ||
---|---|---|
1 | 1 |
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%] |
2 | 2 |
<h1>[% FORM.title %]</h1> |
3 | 3 |
|
4 |
<form method="post" action="controller.pl" id="form"> |
|
5 |
|
|
6 |
[%- INCLUDE 'common/flash.html' %] |
|
7 |
|
|
8 |
<table> |
|
9 |
<tr class="listheading"> |
|
10 |
<th></th> |
|
11 |
<th>[% LxERP.t8("General settings") %]</th> |
|
12 |
</tr> |
|
13 |
|
|
14 |
<tr> |
|
15 |
<td>[%- 'Description' | $T8 %]</td> |
|
16 |
<td> |
|
17 |
[% P.input_tag("payment_term.description", SELF.payment_term.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] |
|
18 |
</td> |
|
19 |
</tr> |
|
20 |
|
|
21 |
<tr> |
|
22 |
<td>[% LxERP.t8("Calculate due date automatically") %]</td> |
|
23 |
<td>[% L.yes_no_tag("payment_term.auto_calculation", SELF.payment_term.auto_calculation, "data-auto-calculation-toggle"="1") %]</td> |
|
24 |
</tr> |
|
25 |
|
|
26 |
<tr> |
|
27 |
<td>[%- 'Netto Terms' | $T8 %]</td> |
|
28 |
<td> |
|
29 |
[% L.input_tag("payment_term.terms_netto_as_number", SELF.payment_term.terms_netto_as_number, size="6", disabled=(SELF.payment_term.auto_calculation ? '' : 1)) %] |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
|
|
33 |
<tr> |
|
34 |
<td>[%- 'Skonto Terms' | $T8 %]</td> |
|
35 |
<td> |
|
36 |
<input name="payment_term.terms_skonto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_skonto_as_number) %]" size="6"> |
|
37 |
</td> |
|
38 |
</tr> |
|
4 |
|
|
5 |
<form method="post" action="controller.pl" id="form"> |
|
6 |
[%- INCLUDE 'common/flash.html' %] |
|
7 |
<div class="wrapper"> |
|
8 |
|
|
9 |
<table class="tbl-horizontal"> |
|
10 |
<caption> [% LxERP.t8("General settings") %] </caption> |
|
11 |
<colgroup><col class="wi-mediumsmall"><col></colgroup> |
|
12 |
<tbody> |
|
13 |
<tr> |
|
14 |
<th> </th> |
|
15 |
<th> </th> |
|
16 |
</tr> |
|
17 |
<tr> |
|
18 |
<td> [%- 'Description' | $T8 %] </td> |
|
19 |
<td> [% P.input_tag("payment_term.description", SELF.payment_term.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td> |
|
20 |
</tr> |
|
21 |
<tr> |
|
22 |
<td> [% LxERP.t8("Calculate due date automatically") %] </td> |
|
23 |
<td> [% L.yes_no_tag("payment_term.auto_calculation", SELF.payment_term.auto_calculation, "data-auto-calculation-toggle"="1") %] </td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<td> [%- 'Netto Terms' | $T8 %] </td> |
|
27 |
<td> [% L.input_tag("payment_term.terms_netto_as_number", SELF.payment_term.terms_netto_as_number, size="6", disabled=(SELF.payment_term.auto_calculation ? '' : 1)) %] </td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<td> [%- 'Skonto Terms' | $T8 %] </td> |
|
31 |
<td> |
|
32 |
<input type="text" name="payment_term.terms_skonto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_skonto_as_number) %]" size="6"> |
|
33 |
</td> |
|
34 |
</tr> |
|
35 |
<tr> |
|
36 |
<td> [%- 'Skonto' | $T8 %] </td> |
|
37 |
<td> |
|
38 |
<input type="text" name="payment_term.percent_skonto_as_percent" value="[%- HTML.escape(SELF.payment_term.percent_skonto_as_percent) %]" size="6"> |
|
39 |
% </td> |
|
40 |
</tr> |
|
41 |
[% IF SELF.payment_term.id %] |
|
42 |
<tr> |
|
43 |
<td> [% 'Obsolete' | $T8 %] </td> |
|
44 |
<td> [% L.checkbox_tag('payment_term.obsolete', checked = SELF.payment_term.obsolete, for_submit=1) %] </td> |
|
45 |
</tr> |
|
46 |
[% END %] |
|
47 |
</tbody> |
|
48 |
</table> |
|
39 | 49 |
|
40 |
<tr> |
|
41 |
<td>[%- 'Skonto' | $T8 %]</td> |
|
42 |
<td> |
|
43 |
<input name="payment_term.percent_skonto_as_percent" value="[%- HTML.escape(SELF.payment_term.percent_skonto_as_percent) %]" size="6">% |
|
44 |
</td> |
|
45 |
</tr> |
|
50 |
|
|
51 |
<table class="tbl-horizontal"> |
|
52 |
<caption> [%- 'Long Description' | $T8 %] </caption> |
|
53 |
<tbody> |
|
54 |
<tr> |
|
55 |
<th> [% LxERP.t8("Texts for quotations & orders") %] </th> |
|
56 |
<td> [% P.input_tag("payment_term.description_long", SELF.payment_term.description_long, size="60", "data-validate"="required", "data-title"=LxERP.t8("Long Description for quotations & orders")) %] </td> |
|
57 |
</tr> |
|
58 |
<tr> |
|
59 |
<th> [% LxERP.t8("Texts for invoices") %] </th> |
|
60 |
<td> [% P.input_tag("payment_term.description_long_invoice", SELF.payment_term.description_long_invoice, size="60", "data-validate"="required", "data-title"=LxERP.t8("Long Description for invoices")) %] </td> |
|
61 |
</tr> |
|
62 |
[%- FOREACH language = SELF.languages %] |
|
63 |
<tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr> |
|
64 |
<tr> |
|
65 |
<th> [% LxERP.t8("Texts for quotations & orders") %] </th> |
|
66 |
<td> |
|
67 |
<input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60"> |
|
68 |
</td> |
|
69 |
</tr> |
|
70 |
<tr> |
|
71 |
<th> [% LxERP.t8("Texts for invoices") %] </th> |
|
72 |
<td> |
|
73 |
<input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long_invoice', language, 1)) %]" size="60"> |
|
74 |
</td> |
|
75 |
</tr> |
|
76 |
[%- END %] |
|
77 |
</tbody> |
|
78 |
</table> |
|
79 |
[% P.hidden_tag("id", SELF.payment_term.id) %] |
|
80 |
|
|
81 |
</div> |
|
46 | 82 |
|
47 |
[% IF SELF.payment_term.id %] |
|
48 |
<tr> |
|
49 |
<td>[% 'Obsolete' | $T8 %]</td> |
|
50 |
<td>[% L.checkbox_tag('payment_term.obsolete', checked = SELF.payment_term.obsolete, for_submit=1) %]</td> |
|
51 |
</tr> |
|
52 |
</tr> |
|
53 |
[% END %] |
|
54 | 83 |
|
55 |
<tr class="listheading"> |
|
56 |
<th></th> |
|
57 |
<th>[% LxERP.t8("Texts for quotations & orders") %]</th> |
|
58 |
<th>[% LxERP.t8("Texts for invoices") %]</th> |
|
59 |
</tr> |
|
60 | 84 |
|
61 |
<tr> |
|
62 |
<td>[%- 'Long Description' | $T8 %]</td> |
|
63 |
<td> |
|
64 |
[% P.input_tag("payment_term.description_long", SELF.payment_term.description_long, size="60", "data-validate"="required", "data-title"=LxERP.t8("Long Description for quotations & orders")) %] |
|
65 |
</td> |
|
66 | 85 |
|
67 |
<td> |
|
68 |
[% P.input_tag("payment_term.description_long_invoice", SELF.payment_term.description_long_invoice, size="60", "data-validate"="required", "data-title"=LxERP.t8("Long Description for invoices")) %] |
|
69 |
</td> |
|
70 |
</tr> |
|
71 | 86 |
<div class="instructions"> |
72 | 87 |
<p>[% LxERP.t8("You can use the following strings in the long description and all translations. They will be replaced by their actual values by kivitendo before they're output.") %]</p> |
88 |
|
|
73 | 89 |
|
74 |
|
|
75 |
[%- FOREACH language = SELF.languages %] |
|
76 | 90 |
<table class="tbl-list-plain"> |
77 | 91 |
<thead> |
78 | 92 |
<tr> |
79 |
<td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td> |
|
80 |
<td> |
|
81 |
<input name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60"> |
|
82 |
</td> |
|
83 |
|
|
84 |
<td> |
|
85 |
<input name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long_invoice', language, 1)) %]" size="60"> |
|
86 |
</td> |
|
87 | 93 |
<th> [%- LxERP.t8('Field') %] </th> |
88 | 94 |
<th> [%- LxERP.t8('Description') %] </th> |
89 | 95 |
</tr> |
90 |
[%- END %] |
|
91 |
</table> |
|
92 |
|
|
93 |
[% P.hidden_tag("id", SELF.payment_term.id) %] |
|
94 |
|
|
95 |
<hr size="3" noshade> |
|
96 | 96 |
</thead> |
97 | 97 |
<tbody> |
98 | 98 |
<tr> |
... | ... | |
166 | 166 |
</tbody> |
167 | 167 |
</table> |
168 | 168 |
|
169 |
|
|
169 |
|
|
170 | 170 |
</div> |
171 | 171 |
|
172 |
</form> |
|
172 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/payment_term/form.html