epic-ts
[kivitendo-erp.git] / templates / webpages / requirement_spec_status / 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_STATUSES.size %]
8    <p>
9     [%- LxERP.t8('No requirement spec statuses has been created yet.') %]
10    </p>
11
12   [%- ELSE %]
13    <table id="requirement_spec_status_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('Name') %]</th>
18      <th>[%- LxERP.t8('Description') %]</th>
19     </tr>
20     </thead>
21
22     <tbody>
23     [%- FOREACH requirement_spec_status = REQUIREMENT_SPEC_STATUSES %]
24     <tr class="listrow[% loop.count % 2 %]" id="requirement_spec_status_id_[% requirement_spec_status.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_status.id) %]">
28        [%- HTML.escape(requirement_spec_status.name) %]
29       </a>
30      </td>
31
32      <td>[%- HTML.escape(requirement_spec_status.description) %]</td>
33     </tr>
34     [%- END %]
35     </tbody>
36    </table>
37   [%- END %]
38
39   <p>
40    <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create a new requirement spec status') %]</a>
41   </p>
42  </form>
43
44  [% L.sortable_element('#requirement_spec_status_list tbody', url => 'controller.pl?action=RequirementSpecStatus/reorder', with => 'requirement_spec_status_id') %]