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