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