]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/payment_term/form.html
Rechnungen: Zahlungsein-/-ausgänge nach Datum sortieren
[mfinanz.git] / templates / webpages / payment_term / form.html
index 973940d766f1ea4cb22c88de96a15e6a386d9f24..48cc15a76b2e585a2852ad39f7420fd79195c536 100755 (executable)
@@ -1,8 +1,7 @@
 [% 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>
 
@@ -65,7 +69,7 @@
 
   <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>
@@ -86,6 +90,3 @@
    <tr><td>&lt;%bank_code%&gt;</td><td>[% LxERP.t8("Your bank code") %]</td></tr>
   </table>
  </form>
-
-</body>
-</html>