[%- USE T8 %][%- USE LxERP %][% USE L %] [% USE HTML %]

[% title %]

[% INCLUDE "common/flash.html" %] [% PROCESS "am/_units_header_info.html" %]

[% 'Units that have already been used (e.g. for parts and services or in invoices or warehouse transactions) cannot be changed.' | $T8 %]

[% 'Units marked for deletion will be deleted upon saving.' | $T8 %]

[% 'You can declare different translations for singular and plural for each unit (e.g. "day" and "days).' | $T8 %]

[% FOREACH language = LANGUAGES %] [% END %] [% FOREACH row = UNITS %] [% IF row.in_use %] [% ELSE %] [% END %] [% FOREACH language = row.UNITLANGUAGES %] [% END %] [% END %]
[%- LxERP.t8('reorder item') %] [% 'Delete' | $T8 %] [% 'Unit' | $T8 %] [% 'Base unit' | $T8 %] [% 'Factor' | $T8 %][% language.description %]
[%- LxERP.t8('reorder item') %] [% HTML.escape(row.name) %] [% IF row.base_unit %][% HTML.escape(row.base_unit) %][% ELSE %]---[% END %] [% IF row.base_unit %][% HTML.escape(row.factor) %][% ELSE %]---[% END %] [% 'singular first char' | $T8 %]: [% 'plural first char' | $T8 %]:
[% L.sortable_element('#unit_list tbody', url => 'controller.pl?action=Unit/reorder', with => 'unit_id') %]