[% USE HTML %][% USE L %][% USE LxERP %]

[% FORM.title %]

[%- INCLUDE 'common/flash.html' %]
[% IF !PART_CLASSIFICATIONS.size %]

[%- LxERP.t8('No parts classification has been created yet.') %]

[%- ELSE %] [%- FOREACH part_classification = PART_CLASSIFICATIONS %] [%- END %]
[%- LxERP.t8('reorder item') %] [%- LxERP.t8('Description') %] [%- LxERP.t8('TypeAbbreviation') %] [%- LxERP.t8('Used for Purchase') %] [%- LxERP.t8('Used for Sale') %] [%- LxERP.t8('Report separately') %]
[%- LxERP.t8('reorder item') %] [%- HTML.escape(LxERP.t8(part_classification.description)) %] [%- HTML.escape(LxERP.t8(part_classification.abbreviation)) %] [% IF part_classification.used_for_purchase %][% LxERP.t8('Yes') %][% ELSE %][% LxERP.t8('No') %][% END %] [% IF part_classification.used_for_sale %][% LxERP.t8('Yes') %][% ELSE %][% LxERP.t8('No') %][% END %] [% IF part_classification.report_separate %][% LxERP.t8('Yes') %][% ELSE %][% LxERP.t8('No') %][% END %]
[%- END %]

[%- LxERP.t8('Create a new parts classification') %]

[% L.sortable_element('#part_classification_list tbody', url => 'controller.pl?action=PartClassification/reorder', with => 'part_classification_id') %]