mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Improve product card display
This commit is contained in:
parent
d97030da6f
commit
c02930aa4d
1 changed files with 1 additions and 1 deletions
|
@ -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' %}
|
||||
|
|
Loading…
Reference in a new issue