X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2F_shop.html;fp=templates%2Fwebpages%2Fpart%2F_shop.html;h=3c65b4dacad66769ee3da49e2cd01c09aea4e3d1;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/templates/webpages/part/_shop.html b/templates/webpages/part/_shop.html new file mode 100644 index 000000000..3c65b4dac --- /dev/null +++ b/templates/webpages/part/_shop.html @@ -0,0 +1,89 @@ +[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%] +[%- USE Dumper %] +[%- USE JavaScript -%] +
+

[% LxERP.t8("Active shops:") %]

+ + + + + + + + + + + + + + + + [%# L.dump(SELF.part) %] + [%- FOREACH shop_part = SELF.part.shop_parts %] + [% IF !shop_part.shop.obsolete %] + + + + + + + + + + + + + + + [% END %] + [%- END %] + [%- FOREACH shop = SELF.shops_not_assigned %] + + + + + + + + + + + [%- END %] +
[% LxERP.t8("Shop") %][% LxERP.t8("Active") %][% LxERP.t8("Shop part") %][% LxERP.t8("Price source") %][% LxERP.t8("Price") %][% LxERP.t8("Stock Local/Shop") %][% LxERP.t8("Last update") %][% LxERP.t8("Action") %][% LxERP.t8("Action") %][% LxERP.t8("Action") %]
[% HTML.escape( shop_part.shop.description ) %][% L.html_tag('span', shop_part.active, id => 'shop_part_active_' _ shop_part.id ) %] + [% IF shop_part.shop.use_part_longdescription %] + [% L.html_tag('span', shop_part.part.notes, id => 'shop_part_description_' _ shop_part.id ) %] + [% ELSE %] + [% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %] + [% END %] + [% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %] [% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %][% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %][% L.html_tag('span', shop_part.last_update.to_kivitendo('precision' => 'minute'), id => 'shop_part_last_update_' _ shop_part.id ) %][% L.button_tag("kivi.ShopPart.edit_shop_part(" _ shop_part.id _ ")", LxERP.t8("Edit")) %][% L.button_tag("kivi.ShopPart.update_shop_part(" _ shop_part.id _ ")", LxERP.t8("Upload")) %][% L.button_tag("kivi.ShopPart.get_all_categories(" _ shop_part.id _ ")", LxERP.t8("Shopcategories")) %]
+ [% IF shop_part.shop_category %] + [% IF shop_part.shop_category.1.size > 1%] + [% FOREACH cat = shop_part.shop_category %] + [% HTML.escape(cat.1) %]
+ [% END %] + [% ELSE %] + [% HTML.escape(shop_part.shop_category.1) %]
+ [% END %] + [% END %] +
[% HTML.escape( shop.description ) %][% L.button_tag("kivi.ShopPart.create_shop_part(" _ id _ ", " _ shop.id _ ")", LxERP.t8("Add")) %]
+ + +[% # L.dump(shop_part) %] +

[% LxERP.t8("Shopimages - valid for all shops") %]

+ [%- IF shop_part.part_id %] + +
+ [%- ELSE %] +
[% LxERP.t8('To upload images: Please create shoppart first') %]
+ [%- END %] +
+