Add admin panel, cart, checkout, and digital key delivery

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
orohi
2026-07-25 05:32:05 +03:00
co-authored by Cursor
parent 08cc4b0f1b
commit 54eaff4c70
32 changed files with 1982 additions and 105 deletions
+36
View File
@@ -0,0 +1,36 @@
{% extends "admin/base.html" %}
{% block title %}Заказы — {{ app_name }}{% endblock %}
{% block content %}
<div class="section-head">
<h2>Заказы</h2>
<p>Последние 100 заказов</p>
</div>
<div class="table-wrap">
<table class="data-table">
<thead>
<tr>
<th>Номер</th>
<th>Email</th>
<th>Сумма</th>
<th>Статус</th>
<th>Дата</th>
</tr>
</thead>
<tbody>
{% for order in orders %}
<tr>
<td><a href="/admin/orders/{{ order.id }}">{{ order.public_id }}</a></td>
<td>{{ order.email }}</td>
<td>{{ order.total | rub }}</td>
<td>{{ order.status }}</td>
<td>{{ order.created_at }}</td>
</tr>
{% else %}
<tr><td colspan="5">Заказов нет</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}