init commit

This commit is contained in:
2025-06-13 21:10:20 +09:00
commit d52c611afb
269 changed files with 37162 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
{% extends "admin/base_site.html" %}
{% load static %}
{% load i18n %}
{% block content %}
<div class="container">
<h1>Результаты розыгрыша</h1>
<h2>Лотерея: {{ lottery.name }}</h2>
<p>{{ lottery.description }}</p>
<table class="table table-striped">
<thead>
<tr>
<th>Призовое место</th>
<th>Описание приза</th>
<th>Награда</th>
<th>Победитель (Счет)</th>
<th>Дата розыгрыша</th>
<th>Статус</th>
<th>Действие</th>
</tr>
</thead>
<tbody>
{% for result in draw_results %}
<tr>
<td>{{ result.prize.prize_place }}</td>
<td>{{ result.prize.description }}</td>
<td>{{ result.prize.reward }}</td>
<td>
{% if result.participant %}
{{ result.participant.invoice }}
{% else %}
Не выбран
{% endif %}
</td>
<td>{{ result.drawn_at }}</td>
<td>
{% if result.confirmed %}
Подтвержден
{% else %}
Не подтвержден
{% endif %}
</td>
<td>
{% if not result.confirmed %}
<a class="button" href="{% url 'admin:confirm_draw_result' result.id %}">Подтвердить</a>
{% else %}
-
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<a class="button" href="{% url 'admin:draw_lottery_changelist' %}">Вернуться к списку лотерей</a>
</div>
{% endblock %}