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