+ [% IF SELF.shop_part.id %]
+ [%- L.hidden_tag("shop_part.id", SELF.shop_part.id) %]
+ [%- L.hidden_tag("shop_part.shop_id", SELF.shop_part.shop_id) %]
+ [% ELSE %]
+ [%- L.hidden_tag("shop_part.shop_id", FORM.shop_id) %]
+ [%- L.hidden_tag("shop_part.part_id", FORM.part_id) %]
+ [% END %]
+
+ [% # L.dump(SELF.shop_part.shop) %]
+
+
+ | [% LxERP.t8("Description") %] |
+
+ [% IF SELF.shop_part.shop.use_part_longdescription %]
+ [% L.textarea_tag('notes', SELF.shop_part.part.notes, wrap="soft", readonly="readonly", style="width: 350px; height: 150px", class="texteditor") %]
+ [% ELSE %]
+ [% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
+ [% END %]
+ |
+
+
+ | [% LxERP.t8("Active") %] |
+ [% L.yes_no_tag("shop_part.active", SELF.shop_part.active, default = "yes") %] |
+ [% LxERP.t8("Date") %] |
+ [% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %] |
+
+
+ | [% 'Price Source' | $T8 %]
+ [% IF SELF.shop_part.active_price_source %]
+ [% SET price_source = SELF.shop_part.active_price_source %]
+ [% ELSE %]
+ [% SET price_source = SELF.shop_part.shop.price_source %]
+ [% END %]
+ | [% L.select_tag('shop_part.active_price_source', SELF.price_sources, value_key = 'id', title_key = 'name', with_empty = 0, default = price_source, default_value_key='id' ) %] |
+ [% LxERP.t8("Front page") %] |
+ [% L.yes_no_tag('shop_part.front_page', SELF.shop_part.front_page) %] |
+
+
+ | [% LxERP.t8("Sort order") %] |
+ [% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %] |
+ [% LxERP.t8("Meta tag title") %] |
+ [% L.input_tag("shop_part.metatag_title", SELF.shop_part.metatag_title, size=12) %] |
+
+
+ | [% LxERP.t8("Meta tag keywords") %] |
+ [% L.input_tag("shop_part.metatag_keywords", SELF.shop_part.metatag_keywords, size=22) %] |
+ [% LxERP.t8("Meta tag description") %] |
+ [% L.textarea_tag("shop_part.metatag_description", SELF.shop_part.metatag_description, rows=4) %] |
+
+
+ [% IF SELF.shop_part.id %]
+ [% L.button_tag("kivi.ShopPart.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save")) %]
+ [% ELSE %]
+ [% L.button_tag("kivi.ShopPart.add_shop_part()", LxERP.t8("Save")) %]
+ [% END %]
+