Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision da2c1643

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

  • ID da2c164395dbc977b3911eebffd7f5110760c12f
  • Vorgänger 3e64d184
  • Nachfolger 44c64e5d

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

Unterschiede anzeigen:

templates/webpages/shop_part/categories.html
<form action="controller.pl" method="post">
[% BLOCK recurse %]
[% # path = '' %]<!-- TODO: Pfad wg neuer Kategorie im Shop anlegen -->
[% FOREACH obj = data %]
<ul>
<ul>
[% FOREACH obj = data %]
<li>
[% checked = '' %]
[% # path = path _ obj.name %]
[% # test = path.split('\|') %]
[% IF SELF.shop_part.shop_category.1.grep(obj.name).size %]
[% checked = 'checked' %]
[% ELSE %]
[% FOREACH cat_row = SELF.shop_part.shop_category %]
[% IF cat_row.1.grep(obj.name).size %]
[% checked = 'checked' %]
[% checked = '' %]
[% # path = path _ obj.name %]
[% # test = path.split('\|') %]
[% IF SELF.shop_part.shop_category.1.grep(obj.name).size %]
[% checked = 'checked' %]
[% ELSE %]
[% FOREACH cat_row = SELF.shop_part.shop_category %]
[% IF cat_row.1.grep(obj.name).size %]
[% checked = 'checked' %]
[% END %]
[% END %]
[% END %]
[% END %]
[% L.checkbox_tag('categories[]',value=obj.id, checked=checked) %][% HTML.escape(obj.name) %][% L.hidden_tag("cat_id_" _ obj.id, obj.name) %]</li>
[% L.checkbox_tag('categories[]',value=obj.id, checked=checked) %][% HTML.escape(obj.name) %][% L.hidden_tag("cat_id_" _ obj.id, obj.name) %]
</li>
[% IF obj.childrenCount >= 1 %]
[% # path = path _ '|' %]
[% INCLUDE recurse data=obj.children %]
[% END %]
</ul>
[% END %]
[% END %]
</ul>
[% END %]
<div><h2>[% LxERP.t8("Shopcategories") %]</h2>
<div>
<h2>[% LxERP.t8("Shopcategories") %]</h2>
[% FOREACH row = CATEGORIES %]
<!-- TODO: Is still hardcoded 'Root' is shopware specified -->
<!-- TODO: Is still hardcoded 'Root' is shopware specified -->
[% IF row.name == 'Root' %]
[% IF row.childrenCount >= 1 %]
[% path = '' %]

Auch abrufbar als: Unified diff