35c450d02639f1e58ec564149763bc4b9d780cdf
[kivitendo-erp.git] / templates / webpages / department / form.html
1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2 [% SET is_used = SELF.department.is_used %]
3 <body>
4
5  <form method="post" action="controller.pl">
6   <div class="listtop">[% FORM.title %]</div>
7
8 [%- INCLUDE 'common/flash.html' %]
9
10   <table>
11    <tr>
12     <td>[%- 'Description' | $T8 %]</td>
13     <td>[% L.input_tag("department.description", SELF.department.description) %]</td>
14    </tr>
15   </table>
16
17   <p>
18    [% L.hidden_tag("id", SELF.department.id) %]
19    [% L.hidden_tag("action", "Department/dispatch") %]
20    [% L.submit_tag("action_" _  (SELF.department.id ? "update" : "create"), LxERP.t8('Save')) %]
21    [%- IF SELF.department.id && !is_used %]
22     [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this department?")) %]
23    [%- END %]
24    <a href="[% SELF.url_for(action => 'list') %]">[%- 'Abort' | $T8 %]</a>
25   </p>
26  </form>
27 </body>