Improve product card display

This commit is contained in:
Gabriel Augendre 2022-04-24 19:18:46 +02:00
parent d97030da6f
commit c02930aa4d

View file

@ -1,11 +1,11 @@
{% load crispy_forms_field %}
<div class="col-sm-3 mb-3 mt-3">
<div class="card">
<div class="card-header">{{ product.name }}</div>
{% if product.image %}
<img src="{{ product.image.url }}" class="card-img-top">
{% endif %}
<div class="card-body">
<h5 class="card-title">{{ product.name }}</h5>
<div class="input-group">
<button class="btn btn-danger" type="button" onclick="decrementValue('{{ field.id_for_label }}')">-</button>
{% crispy_field field 'class' 'form-control' %}