894e259b305e5f195117715d274e9f048f0aa02b
[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 <h1>[% FORM.title %]</h1>
4
5  <form method="post" action="controller.pl">
6
7 [%- INCLUDE 'common/flash.html' %]
8
9   <table>
10    <tr>
11     <td>[%- 'Description' | $T8 %]</td>
12     <td>[% L.input_tag("department.description", SELF.department.description) %]</td>
13    </tr>
14   </table>
15
16   <p>
17    [% L.hidden_tag("id", SELF.department.id) %]
18    [% L.hidden_tag("action", "Department/dispatch") %]
19    [% L.submit_tag("action_" _  (SELF.department.id ? "update" : "create"), LxERP.t8('Save')) %]
20    [%- IF SELF.department.id && !is_used %]
21     [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this department?")) %]
22    [%- END %]
23    <a href="[% SELF.url_for(action => 'list') %]">[%- 'Abort' | $T8 %]</a>
24   </p>
25  </form>