a8920ddd0efadccee95698b1ff3c67c800af0947
[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      <th>[%- LxERP.t8('Section number format') %]</th>
20      <th>[%- LxERP.t8('Function block number format') %]</th>
21     </tr>
22     </thead>
23
24     <tbody>
25     [%- FOREACH requirement_spec_type = REQUIREMENT_SPEC_TYPES %]
26     <tr class="listrow[% loop.count % 2 %]" id="requirement_spec_type_id_[% requirement_spec_type.id %]">
27      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
28      <td>
29       <a href="[% SELF.url_for(action => 'edit', id => requirement_spec_type.id) %]">
30        [%- HTML.escape(requirement_spec_type.description) %]
31       </a>
32      </td>
33
34      <td>[% HTML.escape(requirement_spec_type.section_number_format) %]</td>
35      <td>[% HTML.escape(requirement_spec_type.function_block_number_format) %]</td>
36     </tr>
37     [%- END %]
38     </tbody>
39    </table>
40   [%- END %]
41
42   <p>
43    <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create a new requirement spec type') %]</a>
44   </p>
45  </form>
46
47  [% L.sortable_element('#requirement_spec_type_list tbody', url => 'controller.pl?action=RequirementSpecType/reorder', with => 'requirement_spec_type_id') %]