Skip to content
Snippets Groups Projects
Commit 3b5cdff3 authored by Axel Po's avatar Axel Po
Browse files

fix: msg if not product in category

parent 90514e61
Branches
1 merge request!8Dev
......@@ -42,7 +42,10 @@
{% else %}
<h2 class="text-5xl mb-12">Nos produits</h2>
{% endif %}
{% if products|length == 0 %}
<p>Aucun produit dans la catégorie <span class="text-orangeLight">{{categoryName}}</span></p>
{% else %}
<div class="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
{% for product in products %}
<a href="{{ path('app_product_show', { id: product.id }) }}">
......@@ -57,9 +60,10 @@
<h3 class="text-center text-xl">{{ product.title }}</h3>
</article>
</a>
{% endfor %}
</div>
{% endif %}
</section>
</div>
{% endblock %}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment