feat: update order payment methods and refine profile edit functionality
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:
2026-05-30 12:25:19 +02:00
parent d4fa91ac7f
commit ad962d946b
18 changed files with 171 additions and 36 deletions

View File

@@ -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">