[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %] [% SET is_used = SELF.department.is_used %]
[% L.hidden_tag("id", SELF.department.id) %] [% L.hidden_tag("action", "Department/dispatch") %] [% L.submit_tag("action_" _ (SELF.department.id ? "update" : "create"), LxERP.t8('Save')) %] [%- IF SELF.department.id && !is_used %] [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this department?")) %] [%- END %] [%- 'Abort' | $T8 %]