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