Revision b85ed480
Von Werner Hahn vor mehr als 6 Jahren hinzugefügt
templates/webpages/shop_part/edit.html | ||
---|---|---|
8 | 8 |
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %] |
9 | 9 |
|
10 | 10 |
<form action="controller.pl" method="post"> |
11 |
<div> |
|
12 |
[% IF SELF.shop_part.id %] |
|
13 |
[%- L.hidden_tag("shop_part.id", SELF.shop_part.id) %] |
|
14 |
[%- L.hidden_tag("shop_part.shop_id", SELF.shop_part.shop_id) %] |
|
15 |
[% ELSE %] |
|
16 |
[%- L.hidden_tag("shop_part.shop_id", FORM.shop_id) %] |
|
17 |
[%- L.hidden_tag("shop_part.part_id", FORM.part_id) %] |
|
18 |
[% END %] |
|
11 | 19 |
|
12 |
[% IF SELF.shop_part.id %] |
|
13 |
[%- L.hidden_tag("shop_part.id", SELF.shop_part.id) %] |
|
14 |
[% ELSE %] |
|
15 |
[%- L.hidden_tag("shop_part.shop_id", FORM.shop_id) %] |
|
16 |
[%- L.hidden_tag("shop_part.part_id", FORM.part_id) %] |
|
17 |
[% END %] |
|
20 |
<table> |
|
21 |
<tr> |
|
22 |
<td>[% LxERP.t8("Description") %]</td> |
|
23 |
<td>[% L.textarea_tag('shop_part.shop_description_as_restricted_html', SELF.shop_part.shop_description_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<td>[% LxERP.t8("Active") %]</td> |
|
27 |
<td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active) %]</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<td>[% LxERP.t8("Sort order") %]</td> |
|
31 |
<td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td> |
|
32 |
</tr> |
|
33 |
<tr> |
|
34 |
<td>[% LxERP.t8("Date") %]</td> |
|
35 |
<td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td> |
|
36 |
</tr> |
|
37 |
<tr> |
|
38 |
<td>[% LxERP.t8("Front page") %]</td> |
|
39 |
<td>[% L.yes_no_tag('shop_part.front_page', SELF.shop_part.front_page) %]</td> |
|
40 |
</tr> |
|
41 |
<tr> |
|
42 |
<td>[% LxERP.t8("Meta Tags") %]</td> |
|
43 |
<td>[% L.input_tag("shop_part.meta_tags", SELF.shop_part.meta_tags, size=2) %]</td> |
|
44 |
</tr> |
|
45 |
<tr> |
|
46 |
<td>[% LxERP.t8("Shop Category") %]</td> |
|
47 |
<td>[% L.input_tag("shop_part.shop_category", SELF.shop_part.category, size=2) %]</td> |
|
48 |
</tr> |
|
49 |
</table> |
|
50 |
[% # L.dump(SELF.shop_part) %] |
|
18 | 51 |
|
19 |
<table> |
|
20 |
<tr> |
|
21 |
<td>[% LxERP.t8("Description") %]</td> |
|
22 |
<td>[% L.textarea_tag('shop_part.shop_description_as_restricted_html', SELF.shop_part.shop_description_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td> |
|
23 |
<td>[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td> |
|
24 |
<!-- <td>[% L.textarea_tag("shop_part.shop_description", SELF.shop_part.shop_description) %]</td> --> |
|
25 |
</tr> |
|
26 |
<tr> |
|
27 |
<td>[% LxERP.t8("Active") %]</td> |
|
28 |
<td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active) %]</td> |
|
29 |
</tr> |
|
30 |
<tr> |
|
31 |
<td>[% LxERP.t8("Sort order") %]</td> |
|
32 |
<td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td> |
|
33 |
</tr> |
|
34 |
<tr> |
|
35 |
<td>[% LxERP.t8("Date") %]</td> |
|
36 |
<td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td> |
|
37 |
</tr> |
|
38 |
<tr> |
|
39 |
<td>[% LxERP.t8("Front page") %]</td> |
|
40 |
<td>[% L.yes_no_tag('shop_part.front_page', SELF.shop_part.front_page) %]</td> |
|
41 |
</tr> |
|
42 |
<tr> |
|
43 |
<td>[% LxERP.t8("Meta Tags") %]</td> |
|
44 |
<td>[% L.input_tag("shop_part.meta_tags", SELF.shop_part.meta_tags, size=2) %]</td> |
|
45 |
</tr> |
|
46 |
<tr> |
|
47 |
<td>[% LxERP.t8("Shop Category") %]</td> |
|
48 |
<td>[% L.input_tag("shop_part.shop_category", SELF.shop_part.category, size=2) %]</td> |
|
49 |
</tr> |
|
50 |
</table> |
|
51 |
[% # L.dump(SELF.shop_part) %] |
|
52 |
[% IF SELF.shop_part.id %] |
|
53 |
[% L.button_tag("kivi.shop_part.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save")) %]</td> |
|
54 |
[% ELSE %] |
|
55 |
[% L.button_tag("kivi.shop_part.add_shop_part(" _ FORM.part_id _", " _ FORM.shop_id _")", LxERP.t8("Save")) %]</td> |
|
56 |
[% END %] |
|
57 |
[% # L.button_tag("kivi.shop_part.update_partnumber()", LxERP.t8("Update Partnumber")) %]</td> |
|
52 | 58 |
|
53 |
[% IF SELF.shop_part.id %] |
|
54 |
[% L.button_tag("kivi.shop_part.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save")) %]</td> |
|
55 |
[% ELSE %] |
|
56 |
[% L.button_tag("kivi.shop_part.add_shop_part(" _ FORM.part_id _", " _ FORM.shop_id _")", LxERP.t8("Save")) %]</td> |
|
57 |
[% END %] |
|
58 |
[% # L.button_tag("kivi.shop_part.update_partnumber()", LxERP.t8("Update Partnumber")) %]</td> |
|
59 |
[% # L.hidden_tag("action", "ShopPart/dispatch") %] |
|
60 |
[% # L.submit_tag('action_update', LxERP.t8('Save')) %] |
|
59 | 61 |
|
60 |
[% # L.hidden_tag("action", "ShopPart/dispatch") %] |
|
61 |
[% # L.submit_tag('action_update', LxERP.t8('Save')) %] |
|
62 | 62 |
|
63 |
</div> |
|
63 |
</div>
|
|
64 | 64 |
</form> |
65 |
|
|
66 |
|
|
67 |
|
|
65 | 68 |
[%- IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %] |
66 | 69 |
<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> |
67 | 70 |
[%- END %] |
Auch abrufbar als: Unified diff
Shopmodul: ShopPart Bilder und Kategorien
Bilder werden als Tabelle angezeigt
Conflicts:
templates/webpages/ic/tabs/_shop.html
Shopparts: Bilder werden angezeigt TODO Bilder löschen
Shopkategorien werden aus der Api/Shop geholt und angezeigt zum markieren
Conflicts:
SL/Controller/ShopPart.pm
SL/ShopConnector/Shopware.pm
js/kivi.shop_part.js