init commit
This commit is contained in:
57
lottery/templates/admin/draw_result.html
Normal file
57
lottery/templates/admin/draw_result.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user