10 <h2>[% LxERP.t8("Active shops:") %]</h2>
12 <table class="tbl-list">
15 <th>[% LxERP.t8("Shop") %]</th>
16 <th>[% LxERP.t8("Active") %]</th>
17 <th>[% LxERP.t8("Shop part") %]</th>
18 <th>[% LxERP.t8("Price source") %]</th>
19 <th>[% LxERP.t8("Price") %]</th>
20 <th>[% LxERP.t8("Stock Local/Shop") %]</th>
21 <th>[% LxERP.t8("Last update") %]</th>
22 <th>[% LxERP.t8("Action") %]</th>
23 <th>[% LxERP.t8("Action") %]</th>
24 <th>[% LxERP.t8("Action") %]</th>
28 [% # L.dump(SELF.part) %]
29 [% FOREACH shop_part = SELF.part.shop_parts %]
30 [% IF !shop_part.shop.obsolete %]
32 <td>[% HTML.escape( shop_part.shop.description ) %]</td>
33 <td>[% L.html_tag('span', shop_part.active, id => 'shop_part_active_' _ shop_part.id ) %]</td>
35 [% IF shop_part.shop.use_part_longdescription %]
36 [% L.html_tag('span', shop_part.part.notes, id => 'shop_part_description_' _ shop_part.id ) %]
38 [% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %]
41 <td>[% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %]</td>
42 <td>[% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %]</td>
43 <td>[% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %]</td>
44 <td>[% L.html_tag('span', shop_part.last_update.to_kivitendo('precision' => 'minute'), id => 'shop_part_last_update_' _ shop_part.id ) %]</td>
45 <td>[% L.button_tag("kivi.ShopPart.edit_shop_part(" _ shop_part.id _ ")", LxERP.t8("Edit")) %]</td>
46 <td>[% L.button_tag("kivi.ShopPart.update_shop_part(" _ shop_part.id _ ")", LxERP.t8("Upload")) %]</td>
48 [% L.button_tag("kivi.ShopPart.get_all_categories(" _ shop_part.id _ ")", LxERP.t8("Shopcategories")) %]<br>
49 [% IF shop_part.shop_category %]
50 [% IF shop_part.shop_category.1.size > 1%]
51 [% FOREACH cat = shop_part.shop_category %]
52 [% HTML.escape(cat.1) %]<br>
55 [% HTML.escape(shop_part.shop_category.1) %]<br>
58 <script type="text/javascript">
60 kivi.ShopPart.update_price_n_price_source([% shop_part.id %],'[% shop_part.active_price_source %]');
61 kivi.ShopPart.update_stock([% shop_part.id %]);
68 [% FOREACH shop = SELF.shops_not_assigned %]
70 <td>[% HTML.escape( shop.description ) %]</td>
76 <td>[% L.button_tag("kivi.ShopPart.create_shop_part(" _ id _ ", " _ shop.id _ ")", LxERP.t8("Add")) %]</td>
83 [% # L.dump(shop_part) %]
84 <h2>[% LxERP.t8("Shopimages - valid for all shops") %]</h2>
85 [% IF shop_part.part_id %]
86 <script type="text/javascript">
88 kivi.ShopPart.show_images([% shop_part.part_id %]);
91 <div id="shop_images"></div>
93 <div id="shop_images">[% LxERP.t8('To upload images: Please create shoppart first') %]</div>
96 </div><!-- /wrapper -->