1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2 [% SET is_used = SELF.department.is_used %]
5 <form method="post" action="controller.pl">
6 <div class="listtop">[% FORM.title %]</div>
8 [%- INCLUDE 'common/flash.html' %]
12 <td>[%- 'Description' | $T8 %]</td>
13 <td>[% L.input_tag("department.description", SELF.department.description) %]</td>
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?")) %]
24 <a href="[% SELF.url_for(action => 'list') %]">[%- 'Abort' | $T8 %]</a>