Add admin panel, cart, checkout, and digital key delivery
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user