fixed some issues
rodzic
7d0a7a9470
commit
6d58e80307
|
@ -20,10 +20,7 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="d-flex flex-column flex-shrink-0 p-3 mr-5" style="width: 280px;">
|
||||
<div class="d-flex flex-column flex-shrink-0 p-3 mr-5">
|
||||
<hr>
|
||||
<a href={% url 'cart' %} alt="Koszyk" > Koszyk </a>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{% load static %}
|
||||
|
||||
<div class="card h-100" style="width: 15rem;">
|
||||
<div class="card-header">{{item.title}}</div>
|
||||
<div class="card h-100" >
|
||||
<div class="card-header text-truncate">{{item.title}}</div>
|
||||
<div class="card-body">
|
||||
<img src="{{item.main_image.url}}" class="rounded mx-auto d-block" style="width: 10rem; height: 10 rem;">
|
||||
|
||||
|
@ -10,8 +10,8 @@
|
|||
<input type="number" id="quantity{{item.id}}" name="quantity" min="1" value="1" class="form-control form-control-sm">
|
||||
</div>
|
||||
<div class="col text-end">
|
||||
<button class="btn btn-outline-success add-to-cart-button"
|
||||
data-product-id="{{item.id}}"
|
||||
<button class="btn btn-outline-success add-to-cart-button"
|
||||
data-product-id="{{item.id}}"
|
||||
data-csrf-token="{{csrf_token}}"
|
||||
data-add-to-cart-url={% url "cart-action-add-product" %}
|
||||
data-bs-toggle="modal" data-bs-target="#addToCartModal"
|
||||
|
|
Ładowanie…
Reference in New Issue