1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
2 <h1>[% FORM.title %]</h1>
4 [%- INCLUDE 'common/flash.html' %]
6 <form method="post" action="controller.pl">
7 [% IF !PROJECT_TYPES.size %]
9 [%- 'No project type has been created yet.' | $T8 %]
13 <table id="project_type_list">
15 <tr class="listheading">
16 <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
17 <th>[%- 'Description' | $T8 %]</th>
22 [%- FOREACH project_type = PROJECT_TYPES %]
23 <tr class="listrow[% loop.count % 2 %]" id="project_type_id_[% project_type.id %]">
24 <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
26 <a href="[% SELF.url_for(action => 'edit', id => project_type.id) %]">
27 [%- HTML.escape(project_type.description) %]
37 <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new project type' | $T8 %]</a>
41 [% L.sortable_element('#project_type_list tbody', url => 'controller.pl?action=ProjectType/reorder', with => 'project_type_id') %]