Add anchors for products/categories

This commit is contained in:
Raphael Michel
2020-01-09 10:19:44 +01:00
parent 07d2463960
commit a1ad00a30c
@@ -8,14 +8,15 @@
{% for tup in items_by_category %} {% for tup in items_by_category %}
<section> <section>
{% if tup.0 %} {% if tup.0 %}
<h3>{{ tup.0.name }}</h3> <h3 id="category-{{ tup.0.id }}">{{ tup.0.name }}</h3>
{% if tup.0.description %} {% if tup.0.description %}
<p>{{ tup.0.description|localize|rich_text }}</p> <p>{{ tup.0.description|localize|rich_text }}</p>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% for item in tup.1 %} {% for item in tup.1 %}
{% if item.has_variations %} {% if item.has_variations %}
<details class="item-with-variations" {% if event.settings.show_variations_expanded %}open{% endif %}> <details class="item-with-variations" {% if event.settings.show_variations_expanded %}open{% endif %}
id="item-{{ item.id }}">
<summary class="row-fluid product-row headline"> <summary class="row-fluid product-row headline">
<div class="col-md-8 col-xs-12"> <div class="col-md-8 col-xs-12">
{% if item.picture %} {% if item.picture %}
@@ -171,7 +172,7 @@
</div> </div>
</details> </details>
{% else %} {% else %}
<div class="row-fluid product-row simple"> <div class="row-fluid product-row simple" id="item-{{ item.id }}">
<div class="col-md-8 col-xs-12"> <div class="col-md-8 col-xs-12">
{% if item.picture %} {% if item.picture %}
<a href="{{ item.picture.url }}" class="productpicture" <a href="{{ item.picture.url }}" class="productpicture"