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
+25
View File
@@ -0,0 +1,25 @@
{% extends "admin/base.html" %}
{% block title %}Заказ {{ order.public_id }} — {{ app_name }}{% endblock %}
{% block content %}
<div class="section-head">
<h2>Заказ {{ order.public_id }}</h2>
<p>{{ order.email }} · {{ order.status }} · {{ order.total | rub }}</p>
</div>
{% if order.customer_note %}
<p><strong>Комментарий:</strong> {{ order.customer_note }}</p>
{% endif %}
{% 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 %}
<pre class="codes">{{ item.delivered_codes }}</pre>
{% endif %}
</article>
{% endfor %}
<a class="btn btn-ghost" href="/admin/orders">К списку</a>
{% endblock %}