3ce2d94002f50ca2a261a9ed069b898c1a2a7be6
[kivitendo-erp.git] / templates / webpages / requirement_spec_complexity / 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_COMPLEXITIES.size %]
8    <p>
9     [%- LxERP.t8("No complexities has been created yet.") %]
10    </p>
11
12   [%- ELSE %]
13    <table id="requirement_spec_complexity_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("Description") %]</th>
18     </tr>
19     </thead>
20
21     <tbody>
22     [%- FOREACH requirement_spec_complexity = REQUIREMENT_SPEC_COMPLEXITIES %]
23     <tr class="listrow[% loop.count % 2 %]" id="requirement_spec_complexity_id_[% requirement_spec_complexity.id %]">
24      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8("reorder item") %]"></td>
25      <td>
26       <a href="[% SELF.url_for(action => "edit", id => requirement_spec_complexity.id) %]">
27        [%- HTML.escape(requirement_spec_complexity.description) %]
28       </a>
29      </td>
30     </tr>
31     [%- END %]
32     </tbody>
33    </table>
34   [%- END %]
35
36   <p>
37    <a href="[% SELF.url_for(action => "new") %]">[%- LxERP.t8("Create a new complexity") %]</a>
38   </p>
39  </form>
40
41  [% L.sortable_element("#requirement_spec_complexity_list tbody", url => "controller.pl?action=RequirementSpecComplexity/reorder", with => "requirement_spec_complexity_id") %]