[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
-<body>
+<h1>[% FORM.title %]</h1>
<form method="post" action="controller.pl">
- <div class="listtop">[% FORM.title %]</div>
[%- INCLUDE 'common/flash.html' %]
</tr>
[%- END %]
+ <tr>
+ <td>[% LxERP.t8("Calculate due date automatically") %]</td>
+ <td>[% L.yes_no_tag("payment_term.auto_calculation", SELF.payment_term.auto_calculation, "data-auto-calculation-toggle"="1") %]</td>
+ </tr>
+
<tr>
<td>[%- 'Netto Terms' | $T8 %]</td>
<td>
- <input name="payment_term.terms_netto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_netto_as_number) %]" size="6">
+ [% 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>
</tr>
<hr size="3" noshade>
- <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 Lx-Office before they're output.") %]</p>
+ <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>
<table>
<tr class="listheading"><th>[%- LxERP.t8('Field') %]</th><th>[%- LxERP.t8('Description') %]</th></tr>
<tr><td><%bank_code%></td><td>[% LxERP.t8("Your bank code") %]</td></tr>
</table>
</form>
-
-</body>
-</html>