Verwaltung von Pflichtenhefttypen
[kivitendo-erp.git] / templates / webpages / requirement_spec_type / list.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2
3  <div class="listtop">[% FORM.title %]</div>
4
5 [%- INCLUDE 'common/flash.html' %]
6
7  <form method="post" action="controller.pl">
8   [% IF !REQUIREMENT_SPEC_TYPES.size %]
9    <p>
10     [%- LxERP.t8('No requirement spec type has been created yet.') %]
11    </p>
12
13   [%- ELSE %]
14    <table id="requirement_spec_type_list">
15     <thead>
16     <tr class="listheading">
17      <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
18      <th>[%- LxERP.t8('Description') %]</th>
19     </tr>
20     </thead>
21
22     <tbody>
23     [%- FOREACH requirement_spec_type = REQUIREMENT_SPEC_TYPES %]
24     <tr class="listrow[% loop.count % 2 %]" id="requirement_spec_type_id_[% requirement_spec_type.id %]">
25      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
26      <td>
27       <a href="[% SELF.url_for(action => 'edit', id => requirement_spec_type.id) %]">
28        [%- HTML.escape(requirement_spec_type.description) %]
29       </a>
30      </td>
31     </tr>
32     [%- END %]
33     </tbody>
34    </table>
35   [%- END %]
36
37   <p>
38    <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create a new requirement spec type') %]</a>
39   </p>
40  </form>
41
42  [% L.sortable_element('#requirement_spec_type_list tbody', url => 'controller.pl?action=RequirementSpecType/reorder', with => 'requirement_spec_type_id') %]