Revision 85e20c44
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/shop_part/categories.html | ||
---|---|---|
10 | 10 |
<form action="controller.pl" method="post"> |
11 | 11 |
[% BLOCK recurse %] |
12 | 12 |
[% # path = '' %]<!-- TODO: Pfad wg neuer Kategorie im Shop anlegen --> |
13 |
[% FOREACH obj = data %]
|
|
14 |
<ul>
|
|
13 |
<ul>
|
|
14 |
[% FOREACH obj = data %]
|
|
15 | 15 |
<li> |
16 |
[% checked = '' %] |
|
17 |
[% # path = path _ obj.name %] |
|
18 |
[% # test = path.split('\|') %] |
|
19 |
[% IF SELF.shop_part.shop_category.1.grep(obj.name).size %] |
|
20 |
[% checked = 'checked' %] |
|
21 |
[% ELSE %] |
|
22 |
[% FOREACH cat_row = SELF.shop_part.shop_category %] |
|
23 |
[% IF cat_row.1.grep(obj.name).size %] |
|
24 |
[% checked = 'checked' %] |
|
16 |
[% checked = '' %] |
|
17 |
[% # path = path _ obj.name %] |
|
18 |
[% # test = path.split('\|') %] |
|
19 |
[% IF SELF.shop_part.shop_category.1.grep(obj.name).size %] |
|
20 |
[% checked = 'checked' %] |
|
21 |
[% ELSE %] |
|
22 |
[% FOREACH cat_row = SELF.shop_part.shop_category %] |
|
23 |
[% IF cat_row.1.grep(obj.name).size %] |
|
24 |
[% checked = 'checked' %] |
|
25 |
[% END %] |
|
25 | 26 |
[% END %] |
26 | 27 |
[% END %] |
27 |
[% END %]
|
|
28 |
[% L.checkbox_tag('categories[]',value=obj.id, checked=checked) %][% HTML.escape(obj.name) %][% L.hidden_tag("cat_id_" _ obj.id, obj.name) %]</li>
|
|
28 |
[% L.checkbox_tag('categories[]',value=obj.id, checked=checked) %][% HTML.escape(obj.name) %][% L.hidden_tag("cat_id_" _ obj.id, obj.name) %]
|
|
29 |
</li> |
|
29 | 30 |
[% IF obj.childrenCount >= 1 %] |
30 | 31 |
[% # path = path _ '|' %] |
31 | 32 |
[% INCLUDE recurse data=obj.children %] |
32 | 33 |
[% END %] |
33 |
</ul>
|
|
34 |
[% END %]
|
|
34 |
[% END %]
|
|
35 |
</ul>
|
|
35 | 36 |
[% END %] |
36 |
<div><h2>[% LxERP.t8("Shopcategories") %]</h2> |
|
37 |
<div> |
|
38 |
<h2>[% LxERP.t8("Shopcategories") %]</h2> |
|
37 | 39 |
[% FOREACH row = CATEGORIES %] |
38 |
<!-- TODO: Is still hardcoded 'Root' is shopware specified --> |
|
40 |
<!-- TODO: Is still hardcoded 'Root' is shopware specified -->
|
|
39 | 41 |
[% IF row.name == 'Root' %] |
40 | 42 |
[% IF row.childrenCount >= 1 %] |
41 | 43 |
[% path = '' %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/shop_part/categories.html