bux fixing on new eboutic (#493)

- les alt des images des produits n'étaient pas bonnes
- les noms de produits avec une apostrophe dedans n'étaient pas cliquables
This commit is contained in:
thomas girod 2022-11-16 19:08:58 +01:00 committed by GitHub
parent 1281104d96
commit 96510b270d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 50 additions and 50 deletions

View File

@ -102,10 +102,10 @@
<div class="product-group">
{% for p in items %}
<button class="product-button"
@click="add_from_catalog({{ p.id }}, '{{ p.name }}', {{ p.selling_price }})">
@click='add_from_catalog({{ p.id }}, {{ p.name|tojson }}, {{ p.selling_price }})'>
{% if p.icon %}
<img src="{{ p.icon.url }}" alt="image de {{ p.product_name }}" width="40px"
height="40px">
<img src="{{ p.icon.url }}" alt="image de {{ p.name }}"
width="40px" height="40px">
{% else %}
<i class="fa fa-2x fa-picture-o"></i>
{% endif %}