X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2F_assembly_row.html;h=a974212009c9d87b4f06f47edf7acbfc7940f855;hb=d1809c2258dc72d73a6aaf9392bdf290fc5ee289;hp=e57215e299599c158f6d25a69f6e13cf0ea5aadf;hpb=4c4cc6b42ee126a1112d5f5394d66dda9119a1ab;p=kivitendo-erp.git
diff --git a/templates/webpages/part/_assembly_row.html b/templates/webpages/part/_assembly_row.html
index e57215e29..a97421200 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,20 +18,20 @@
[% HTML.escape(position) or HTML.escape(ITEM.position) %]
-
+ |
|
- [% P.part(ITEM.part) %]
+ [% ITEM.part.presenter.part %]
|
- [% P.type_abbreviation(ITEM.part.part_type) %][% P.classification_abbreviation(ITEM.part.classification_id) %]
+ [% P.part.type_abbreviation(ITEM.part.part_type) %][% P.part.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,
@@ -43,7 +43,7 @@
|
[% ITEM.part.unit | html %]
|
- [% 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 %] |