+++ /dev/null
-[% USE HTML %][% USE L %][% USE LxERP %]
-<h1>[% FORM.title %]</h1>
-
-[%- INCLUDE "common/flash.html" %]
-
- <form method="post" action="controller.pl">
- [% IF !REQUIREMENT_SPEC_RISKS.size %]
- <p>
- [%- LxERP.t8("No risks level has been created yet.") %]
- </p>
-
- [%- ELSE %]
- <table id="requirement_spec_risk_list">
- <thead>
- <tr class="listheading">
- <th align="center"><img src="image/updown.png" alt="[ LxERP.t8("reorder item") %]"></th>
- <th>[%- LxERP.t8("Description") %]</th>
- </tr>
- </thead>
-
- <tbody>
- [%- FOREACH requirement_spec_risk = REQUIREMENT_SPEC_RISKS %]
- <tr class="listrow[% loop.count % 2 %]" id="requirement_spec_risk_id_[% requirement_spec_risk.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_risk.id) %]">
- [%- HTML.escape(requirement_spec_risk.description) %]
- </a>
- </td>
- </tr>
- [%- END %]
- </tbody>
- </table>
- [%- END %]
-
- <p>
- <a href="[% SELF.url_for(action => "new") %]">[%- LxERP.t8("Create a new risk level") %]</a>
- </p>
- </form>
-
- [% L.sortable_element("#requirement_spec_risk_list tbody", url => "controller.pl?action=RequirementSpecRisk/reorder", with => "requirement_spec_risk_id") %]