--- /dev/null
+[% USE HTML %][% USE L %][% USE LxERP %]
+
+ <div class="listtop">[% FORM.title %]</div>
+
+[%- INCLUDE 'common/flash.html' %]
+
+ <form method="post" action="controller.pl">
+ [% IF !REQUIREMENT_SPEC_STATUSES.size %]
+ <p>
+ [%- LxERP.t8('No requirement spec statuses has been created yet.') %]
+ </p>
+
+ [%- ELSE %]
+ <table id="requirement_spec_status_list">
+ <thead>
+ <tr class="listheading">
+ <th align="center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
+ <th>[%- LxERP.t8('Name') %]</th>
+ <th>[%- LxERP.t8('Description') %]</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ [%- FOREACH requirement_spec_status = REQUIREMENT_SPEC_STATUSES %]
+ <tr class="listrow[% loop.count % 2 %]" id="requirement_spec_status_id_[% requirement_spec_status.id %]">
+ <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
+ <td>
+ <a href="[% SELF.url_for(action => 'edit', id => requirement_spec_status.id) %]">
+ [%- HTML.escape(requirement_spec_status.name) %]
+ </a>
+ </td>
+
+ <td>[%- HTML.escape(requirement_spec_status.description) %]</td>
+ </tr>
+ [%- END %]
+ </tbody>
+ </table>
+ [%- END %]
+
+ <p>
+ <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create a new requirement spec status') %]</a>
+ </p>
+ </form>
+
+ [% L.sortable_element('#requirement_spec_status_list tbody', url => 'controller.pl?action=RequirementSpecStatus/reorder', with => 'requirement_spec_status_id') %]