Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 44c64e5d

Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt

  • ID 44c64e5dc3abcb4e7506429d4e7395e5a73f8907
  • Vorgänger da2c1643
  • Nachfolger f9073b45

Neues Design 2019 Standard-Code templates/webpages/shop_part/edit.html

Unterschiede anzeigen:

templates/webpages/shop_part/edit.html
[% USE P %]
[% USE LxERP %]
<p>
[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br>
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]
<p>
<form action="controller.pl" method="post">
<div>
[% 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 %]
<table>
<div class="wrapper">
<p>
[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br>
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]
</p>
[% 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 %]
<table class="tbl-horizontal">
<tbody>
<tr>
<td>[% LxERP.t8("Description") %]</td>
<td colspan="3">[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]</td>
<th>[% LxERP.t8("Description") %]</th>
<td colspan="3">[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]</td>
</tr>
<tr>
<td>[% LxERP.t8("Active") %]</td>
<td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active, default = "yes") %]</td>
<td>[% LxERP.t8("Date") %]</td>
<td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td>
<th>[% LxERP.t8("Active") %]</th>
<td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active, default = "yes") %]</td>
<th>[% LxERP.t8("Date") %]</th>
<td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td>
</tr>
<tr>
<td>[% 'Price Source' | $T8 %]</th>
[% 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 %]
<td>[% 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' ) %]</td>
<td>[% LxERP.t8("Front page") %]</td>
<th>[% 'Price Source' | $T8 %]</th>
<td>
[% 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' ) %]
</td>
<th>[% LxERP.t8("Front page") %]</th>
<td>[% L.yes_no_tag('shop_part.front_page', SELF.shop_part.front_page) %]</td>
</tr>
<tr>
<td>[% LxERP.t8("Sort order") %]</td>
<td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td>
<td>[% LxERP.t8("Meta tag title") %]</td>
<td>[% L.input_tag("shop_part.metatag_title", SELF.shop_part.metatag_title, size=12) %]</td>
<th>[% LxERP.t8("Sort order") %]</th>
<td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td>
<th>[% LxERP.t8("Meta tag title") %]</th>
<td>[% L.input_tag("shop_part.metatag_title", SELF.shop_part.metatag_title, size=12) %]</td>
</tr>
<tr>
<td>[% LxERP.t8("Meta tag keywords") %]</td>
<td>[% L.input_tag("shop_part.metatag_keywords", SELF.shop_part.metatag_keywords, size=22) %]</td>
<td>[% LxERP.t8("Meta tag description") %]</td>
<td>[% L.textarea_tag("shop_part.metatag_description", SELF.shop_part.metatag_description, rows=4) %]</td>
<th>[% LxERP.t8("Meta tag keywords") %]</th>
<td>[% L.input_tag("shop_part.metatag_keywords", SELF.shop_part.metatag_keywords, size=22) %]</td>
<th>[% LxERP.t8("Meta tag description") %]</th>
<td>[% L.textarea_tag("shop_part.metatag_description", SELF.shop_part.metatag_description, rows=4) %]</td>
</tr>
</table>
</tbody>
</table>
[% IF SELF.shop_part.id %]
[% L.button_tag("kivi.ShopPart.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save")) %]</td>
[% ELSE %]
[% L.button_tag("kivi.ShopPart.add_shop_part(" _ FORM.part_id _", " _ FORM.shop_id _")", LxERP.t8("Save")) %]</td>
[% END %]
[% # L.button_tag("kivi.ShopPart.update_partnumber()", LxERP.t8("Update Partnumber")) %]</td>
<div class="buttons">
[% 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(" _ FORM.part_id _", " _ FORM.shop_id _")", LxERP.t8("Save")) %]
[% END %]
[% # L.button_tag("kivi.ShopPart.update_partnumber()", LxERP.t8("Update Partnumber")) %]
[% # L.hidden_tag("action", "ShopPart/dispatch") %]
[% # L.submit_tag('action_update', LxERP.t8('Save')) %]
[% # L.hidden_tag("action", "ShopPart/dispatch") %]
[% # L.submit_tag('action_update', LxERP.t8('Save')) %]
</div>
[% IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %]
<a href="[% SELF.shop_part.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.shop_part.part.image | html %]"/></a>
[% END %]
</div>
</form>
</div><!-- /.wrapper -->
[%- IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %]
<a href="[% SELF.shop_part.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.shop_part.part.image | html %]"/></a>
[%- END %]
</form>

Auch abrufbar als: Unified diff