feat: MVP-скелет площадки (Django + MySQL/SQLite, модели по ТЗ §4, базовые страницы)

This commit is contained in:
apuc committed 2026-09-23 16:47:57 +03:00
1 parent e5f312a00f
commit 8218a568ce
67 files changed
+1929

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
{% extends 'base.html' %}
{% block title %}Каталог{% endblock %}
{% block content %}
<h1>Каталог</h1>
<form class="filters" method="get">
<input type="search" name="q" value="{{ q }}" placeholder="Поиск по названию...">
<select name="category">
<option value="">Все категории</option>
{% for c in categories %}
<option value="{{ c.slug }}" {% if current_category == c %}selected{% endif %}>{{ c.name }}</option>
{% endfor %}
</select>
<button class="btn" type="submit">Применить</button>
</form>
<div class="grid">
{% for p in products %}
{% include 'catalog/_product_card.html' %}
{% empty %}
<p>Ничего не найдено.</p>
{% endfor %}
</div>
{% endblock %}