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
+31
View File
@@ -0,0 +1,31 @@
{% extends "base.html" %}
{% block title %}Заказ {{ order.public_id }} — {{ app_name }}{% endblock %}
{% block content %}
<section class="page-section narrow">
<div class="section-head">
<h2>Заказ {{ order.public_id }}</h2>
<p>Статус: <strong>{{ order.status }}</strong> · {{ order.email }}</p>
</div>
<p class="price big">Сумма: {{ order.total | rub }}</p>
{% for item in order.items %}
<article class="order-item">
<h3>{{ item.title }} × {{ item.quantity }}</h3>
<p class="muted">{{ item.unit_price | rub }} за шт.</p>
{% if item.delivered_codes %}
<div class="codes">
<p class="product-tag">Ваши коды</p>
<pre>{{ item.delivered_codes }}</pre>
</div>
{% else %}
<p>Коды ещё не выданы.</p>
{% endif %}
</article>
{% endfor %}
<p class="muted">Сохраните номер заказа — его можно открыть позже в разделе «Мой заказ».</p>
<a class="btn btn-ghost" href="/">На главную</a>
</section>
{% endblock %}