Artikel-Klassifizierung: Neue Option "Preis separat ausweisen"
[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      <th>[%- LxERP.t8('Report seperately') %]</th>
22     </tr>
23     </thead>
24
25     <tbody>
26     [%- FOREACH parts_classification = PARTS_CLASSIFICATIONS %]
27     <tr class="listrow[% loop.count % 2 %]" id="parts_classification_id_[% parts_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 => parts_classification.id) %]">
31        [%- HTML.escape(LxERP.t8(parts_classification.description)) %]
32       </a>
33      </td>
34      <td>[%- HTML.escape(LxERP.t8(parts_classification.abbreviation)) %]</td>
35      <td>[% IF parts_classification.used_for_purchase %][% LxERP.t8('Yes') %][% ELSE %][%  LxERP.t8('No') %][% END %]</td>
36      <td>[% IF parts_classification.used_for_sale     %][% LxERP.t8('Yes') %][% ELSE %][%  LxERP.t8('No') %][% END %]</td>
37      <td>[% IF parts_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('#parts_classification_list tbody', url => 'controller.pl?action=PartsClassification/reorder', with => 'parts_classification_id') %]