Artikel-Klassifizierung
[kivitendo-erp.git] / templates / webpages / parts_classification / 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 !PARTS_CLASSIFICATIONS.size %]
8    <p>
9     [%-  LxERP.t8('No parts classification has been created yet.') %]
10    </p>
11
12   [%- ELSE %]
13    <table id="parts_classification_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      <th>[%- LxERP.t8('TypeAbbreviation') %]</th>
19      <th>[%- LxERP.t8('Used for Purchase') %]</th>
20      <th>[%- LxERP.t8('Used for Sale') %]</th>
21     </tr>
22     </thead>
23
24     <tbody>
25     [%- FOREACH parts_classification = PARTS_CLASSIFICATIONS %]
26     <tr class="listrow[% loop.count % 2 %]" id="parts_classification_id_[% parts_classification.id %]">
27      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
28      <td>
29       <a href="[% SELF.url_for(action => 'edit', id => parts_classification.id) %]">
30        [%- HTML.escape(LxERP.t8(parts_classification.description)) %]
31       </a>
32      </td>
33      <td>[%- HTML.escape(LxERP.t8(parts_classification.abbreviation)) %]</td>
34      <td>[% IF parts_classification.used_for_purchase %][% LxERP.t8('Yes') %][% ELSE %][%  LxERP.t8('No') %][% END %]</td>
35      <td>[% IF parts_classification.used_for_sale     %][% LxERP.t8('Yes') %][% ELSE %][%  LxERP.t8('No') %][% END %]</td>
36     </tr>
37     [%- END %]
38     </tbody>
39    </table>
40   [%- END %]
41
42   <p>
43    <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create a new parts classification') %]</a>
44   </p>
45  </form>
46
47  [% L.sortable_element('#parts_classification_list tbody', url => 'controller.pl?action=PartsClassification/reorder', with => 'parts_classification_id') %]