af4a475a3d00092aa2095bd65176c97572108311
[kivitendo-erp.git] / templates / webpages / requirement_spec_risk / 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_RISKS.size %]
9    <p>
10     [%- LxERP.t8("No risks level has been created yet.") %]
11    </p>
12
13   [%- ELSE %]
14    <table id="requirement_spec_risk_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     </tr>
20     </thead>
21
22     <tbody>
23     [%- FOREACH requirement_spec_risk = REQUIREMENT_SPEC_RISKS %]
24     <tr class="listrow[% loop.count % 2 %]" id="requirement_spec_risk_id_[% requirement_spec_risk.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_risk.id) %]">
28        [%- HTML.escape(requirement_spec_risk.description) %]
29       </a>
30      </td>
31     </tr>
32     [%- END %]
33     </tbody>
34    </table>
35   [%- END %]
36
37   <p>
38    <a href="[% SELF.url_for(action => "new") %]">[%- LxERP.t8("Create a new risk level") %]</a>
39   </p>
40  </form>
41
42  [% L.sortable_element("#requirement_spec_risk_list tbody", url => "controller.pl?action=RequirementSpecRisk/reorder", with => "requirement_spec_risk_id") %]