[%- USE HTML -%][%- USE T8 -%]

[% title %]

[% UNLESS BINS.size %]

[% 'No bins have been added to this warehouse yet.' | $T8 %]

[% ELSE %]

[%- 'Bins that have been used in the past cannot be deleted anymore. For these bins there\'s no checkbox in the "Delete" column.' | $T8 %]

[%- SET row_odd = '1' %] [%- USE bin_it = Iterator(BINS) %] [%- FOREACH bin = bin_it %] [%- IF row_odd %] [%- END %] [%- SET end_tr = '0' %] [%- UNLESS row_odd %][%- SET end_tr = '1' %][%- END %] [%- IF bin_it.last %][%- SET end_tr = '1' %][%- END %] [%- IF end_tr %] [%- END %] [%- IF row_odd %][% SET row_odd = '0' %][% ELSE %][% SET row_odd = '1' %][% END %] [%- END %]
[% 'Delete' | $T8 %][% 'Description' | $T8 %] [% 'Delete' | $T8 %][% 'Description' | $T8 %]
[% IF bin.in_use %] [% ELSE %][% END %]
[% END %]