Artikel-Klassifizierung: "Preis separat ausweisen"
[kivitendo-erp.git] / templates / webpages / part_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 !PART_CLASSIFICATIONS.size %]
8    <p>
9     [%-  LxERP.t8('No parts classification has been created yet.') %]
10    </p>
11
12   [%- ELSE %]
13    <table id="part_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      <th>[%- LxERP.t8('Report separately') %]</th>
22     </tr>
23     </thead>
24
25     <tbody>
26     [%- FOREACH part_classification = PART_CLASSIFICATIONS %]
27     <tr class="listrow[% loop.count % 2 %]" id="part_classification_id_[% part_classification.id %]">
28      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
29      <td>
30       <a href="[% SELF.url_for(action => 'edit', id => part_classification.id) %]">
31        [%- HTML.escape(LxERP.t8(part_classification.description)) %]
32       </a>
33      </td>
34      <td>[%- HTML.escape(LxERP.t8(part_classification.abbreviation)) %]</td>
35      <td>[% IF part_classification.used_for_purchase %][% LxERP.t8('Yes') %][% ELSE %][%  LxERP.t8('No') %][% END %]</td>
36      <td>[% IF part_classification.used_for_sale     %][% LxERP.t8('Yes') %][% ELSE %][%  LxERP.t8('No') %][% END %]</td>
37      <td>[% IF part_classification.report_separate   %][% LxERP.t8('Yes') %][% ELSE %][%  LxERP.t8('No') %][% END %]</td>
38     </tr>
39     [%- END %]
40     </tbody>
41    </table>
42   [%- END %]
43
44   <p>
45    <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create a new parts classification') %]</a>
46   </p>
47  </form>
48
49  [% L.sortable_element('#part_classification_list tbody', url => 'controller.pl?action=PartClassification/reorder', with => 'part_classification_id') %]