Files
lottery_ycms/lottery/templates/admin/draw_result.html
2025-06-13 21:10:20 +09:00

58 lines
2.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% 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 %}