[%- USE P %]
<tr class="listrow[% listrow %] assembly_item_row">
<td style='display:none'>
- [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]
+ [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
[% L.hidden_tag("assembly_items[+].parts_id", ITEM.part.id) %]
[% END %]
</td>
[% HTML.escape(ITEM.part.description) %]
</td>
<td>
- [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]
+ [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
[%- L.input_tag("assembly_items[].qty_as_number",
ITEM.qty_as_number,
size = 10,
<td nowrap>
[% ITEM.part.unit | html %]
</td>
- [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]
+ [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
<td>[% L.checkbox_tag("assembly_items[].bom", checked=ITEM.bom, for_submit=1) %]</td>
[% ELSE %]
<td>[% IF ITEM.bom %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>