X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2F_assembly_row.html;h=95c097ac5c3606f44cadacaafdf4cb818d60810d;hb=98fb2f04e9601da3cd725cb45f67f2e4d16118a2;hp=82e5c4618f7f5dd8a558cdafa17acf2f3b8163d6;hpb=c364e43efab3ac6f0f0c20cd6f8f89a85ab45280;p=kivitendo-erp.git diff --git a/templates/webpages/part/_assembly_row.html b/templates/webpages/part/_assembly_row.html index 82e5c4618..95c097ac5 100644 --- a/templates/webpages/part/_assembly_row.html +++ b/templates/webpages/part/_assembly_row.html @@ -5,11 +5,11 @@ [%- USE P %] - [% IF orphaned %] + [% IF orphaned || AUTH.assert('assembly_edit', 1) %] [% L.hidden_tag("assembly_items[+].parts_id", ITEM.part.id) %] [% END %] - + [%- L.button_tag("kivi.Part.delete_item_row(this)", LxERP.t8("X")) %] [% # , confirm=LxERP.t8("Are you sure?")) %] @@ -18,17 +18,20 @@ [% HTML.escape(position) or HTML.escape(ITEM.position) %] - + [%- LxERP.t8('reorder item') %] - [% P.part(ITEM.part) %] + [% ITEM.part.presenter.part %] + + + [% P.part.type_abbreviation(ITEM.part.part_type) %][% P.classification_abbreviation(ITEM.part.classification_id) %] [% HTML.escape(ITEM.part.description) %] - [% IF orphaned %] + [% IF orphaned || AUTH.assert('assembly_edit', 1) %] [%- L.input_tag("assembly_items[].qty_as_number", ITEM.qty_as_number, size = 10, @@ -38,18 +41,9 @@ [% END %] - [% IF orphaned %] - [%- L.select_tag("assembly_items[].unit", - ITEM.part.available_units, - default = ITEM.part.unit, - title_key = 'name', - value_key = 'name', - class = 'unitselect') %] - [% ELSE %] [% ITEM.part.unit | html %] - [% END %] - [% IF orphaned %] + [% IF orphaned || AUTH.assert('assembly_edit', 1) %] [% L.checkbox_tag("assembly_items[].bom", checked=ITEM.bom, for_submit=1) %] [% ELSE %] [% IF ITEM.bom %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]