feat: update order payment methods and refine profile edit functionality
All checks were successful
Build and Push Docker Image / build (push) Successful in 43s
All checks were successful
Build and Push Docker Image / build (push) Successful in 43s
- Replaced `Order.PaymentMethod` options with "cash" and "card" while adjusting related code and templates - Set "cash" as the default payment method for orders and checkout forms - Added profile editing functionality with `ProfileForm`, allowing users to update names - Improved feedback messages across profile and order management templates - Updated catalog to handle empty filter results with a "reset filters" option
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
<main class="item-list">
|
||||
{% include "_fragments/item-grid.html" with items=page_obj empty_message="В этой категории пока нет товаров." %}
|
||||
{% if page_obj.object_list %}
|
||||
{% include "_fragments/item-grid.html" with items=page_obj empty_message="В этой категории пока нет товаров." %}
|
||||
{% elif filters_active %}
|
||||
<div class="catalog-empty">
|
||||
<p class="item-list-empty">По выбранным фильтрам ничего не найдено.</p>
|
||||
<a class="catalog-empty__reset" href="{{ reset_filters_url }}">Сбросить фильтры</a>
|
||||
</div>
|
||||
{% else %}
|
||||
{% include "_fragments/item-grid.html" with items=page_obj empty_message="В этой категории пока нет товаров." %}
|
||||
{% endif %}
|
||||
|
||||
{% if paginator.num_pages > 1 %}
|
||||
<nav class="catalog-pagination">
|
||||
|
||||
Reference in New Issue
Block a user