X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/templates/webpages/shop_part/edit.html diff --git a/templates/webpages/shop_part/edit.html b/templates/webpages/shop_part/edit.html new file mode 100644 index 000000000..537953200 --- /dev/null +++ b/templates/webpages/shop_part/edit.html @@ -0,0 +1,73 @@ +[%- USE HTML %] +[%- USE T8 %] +[%- USE L -%] +[%- USE P -%] +[%- USE LxERP -%] + +

+[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]
+[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %] +

+

+
+ [% 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 %] +
+
+ +[%- IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %] + +[%- END %]