X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2F_assortment.html;h=db4330549e210105f97442af47fa10e79370537a;hb=59274d46487423806bdc4c76ea405c57d9e45c0a;hp=866b147c2ebbcbc3db6ac117c6d278a8e0fca4fc;hpb=5d711a25d9257690164f396b25f57095776790d6;p=kivitendo-erp.git diff --git a/templates/webpages/part/_assortment.html b/templates/webpages/part/_assortment.html index 866b147c2..db4330549 100644 --- a/templates/webpages/part/_assortment.html +++ b/templates/webpages/part/_assortment.html @@ -2,6 +2,7 @@ [%- USE HTML %] [%- USE LxERP %] [%- USE L %] +[%- USE P %]
@@ -13,11 +14,11 @@ - [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] [%- LxERP.t8('delete item') %] [% END %] [%- 'position' | $T8 %] - [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] [%- LxERP.t8('reorder item') %] [% END %] [%- 'Partnumber' | $T8 %] @@ -36,20 +37,21 @@ - [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] [% 'Part' | $T8 %]: - [% L.part_picker('add_items[+].parts_id' , '' , style='width: 300px' , class="add_assortment_item_input") %][% L.hidden_tag('add_items[].qty_as_number', 1) %] + [% P.part.picker('add_items[+].parts_id', '', style='width: 300px', multiple=1, id='assortment_picker', action={set_multi_items='kivi.Part.set_multi_assortment_items'}) %] [%- L.button_tag("kivi.Part.add_assortment_item()", LxERP.t8("Add")) %] - [% L.button_tag('kivi.Part.show_multi_items_dialog("assortment",' _ SELF.part.id _ ')', LxERP.t8('Add multiple items')) %] - + [% L.button_tag('$("#assortment_picker").data("part_picker").open_dialog()', LxERP.t8('Add multiple items')) %] + [% L.hidden_tag('add_items[].qty_as_number', 1) %] [% ELSE %] + [% END %] [% 'Totals' | $T8 %]: @@ -58,7 +60,7 @@ [%- LxERP.format_amount(items_sum_diff, 2, 0) %] - [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] [% END %]