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