1 [% USE HTML %][% USE L %][% USE LxERP %]
2 <h1>[% FORM.title %]</h1>
4 [%- INCLUDE 'common/flash.html' %]
6 <form method="post" action="controller.pl">
7 [% IF !PART_CLASSIFICATIONS.size %]
9 [%- LxERP.t8('No parts classification has been created yet.') %]
13 <table id="part_classification_list">
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>
25 [%- FOREACH part_classification = PART_CLASSIFICATIONS %]
26 <tr class="listrow[% loop.count % 2 %]" id="part_classification_id_[% part_classification.id %]">
27 <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
29 <a href="[% SELF.url_for(action => 'edit', id => part_classification.id) %]">
30 [%- HTML.escape(LxERP.t8(part_classification.description)) %]
33 <td>[%- HTML.escape(LxERP.t8(part_classification.abbreviation)) %]</td>
34 <td>[% IF part_classification.used_for_purchase %][% LxERP.t8('Yes') %][% ELSE %][% LxERP.t8('No') %][% END %]</td>
35 <td>[% IF part_classification.used_for_sale %][% LxERP.t8('Yes') %][% ELSE %][% LxERP.t8('No') %][% END %]</td>
43 <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create a new parts classification') %]</a>
47 [% L.sortable_element('#part_classification_list tbody', url => 'controller.pl?action=PartClassification/reorder', with => 'part_classification_id') %]