</html> entfernen
[kivitendo-erp.git] / templates / webpages / business / form.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2 <body>
3
4  <form method="post" action="controller.pl">
5   <div class="listtop">[% FORM.title %]</div>
6
7 [%- INCLUDE 'common/flash.html' %]
8
9   <table>
10    <tr>
11     <td>[%- LxERP.t8('Description') %]</td>
12     <td>[% L.input_tag("business.description", SELF.business.description, "size", 30) %]</td>
13    </tr>
14
15    <tr>
16     <td>[%- LxERP.t8('Discount') %]</td>
17     <td>[% L.input_tag("business.discount_as_percent", SELF.business.discount_as_percent, "size", 5) %]%</td>
18    </tr>
19
20    <tr>
21     <td>[%- LxERP.t8('Customernumberinit') %]</td>
22     <td>[% L.input_tag("business.customernumberinit", SELF.business.customernumberinit, "size", 10) %]</td>
23    </tr>
24
25    [%- IF LXCONFIG.features.vertreter %]
26     <tr>
27      <td>[%- LxERP.t8('Representative') %]</td>
28      <td>[% L.checkbox_tag("business.salesman", "value", 1, "checked", SELF.business.salesman) %]</td>
29     </tr>
30    [%- END %]
31   </table>
32
33   <p>
34    [% L.hidden_tag("id", SELF.business.id) %]
35    [% L.hidden_tag("action", "Business/dispatch") %]
36    [% L.submit_tag("action_" _  (SELF.business.id ? "update" : "create"), LxERP.t8('Save')) %]
37    [%- IF SELF.business.id %]
38     [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this business?")) %]
39    [%- END %]
40    <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>
41   </p>
42  </form>
43 </body>