X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fpart%2F_assembly_row.html;h=95c097ac5c3606f44cadacaafdf4cb818d60810d;hb=8f7bb9d5dc2b961a2efc5f241dec43583f7ca21c;hp=82e5c4618f7f5dd8a558cdafa17acf2f3b8163d6;hpb=13fb6d811d39a8af7144451ada59f2f7d4eb491a;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) %]
-
+ |
|
- [% 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 %] |