Color selected items in basket

This commit is contained in:
Gabriel Augendre 2022-04-25 16:50:33 +02:00
parent 808fc8c976
commit 0ca236f0bf

View file

@ -1,7 +1,7 @@
{% load crispy_forms_field %} {% load crispy_forms_field %}
<div class="col-sm-3 mb-3 mt-3"> <div class="col-sm-3 mb-3 mt-3">
<div class="card"> <div class="card">
<div class="card-header">{{ product.name }}</div> <div class="card-header {% if field.value %}bg-success text-white{% endif %}">{{ product.name }}</div>
{% if product.image %} {% if product.image %}
<img src="{{ product.image.url }}" class="card-img-top"> <img src="{{ product.image.url }}" class="card-img-top">
{% endif %} {% endif %}