{% extends "fortunaisk/base.html" %} {% load i18n humanize fortunaisk_tags static %} {% block page_title %} {% trans "Admin Dashboard" %} {% endblock page_title %} {% block details %}
{% trans "Reference" %} | {% trans "Status" %} | {% trans "Ticket Price (ISK)" %} | {% trans "Total Pot (ISK)" %} | {% trans "Participants" %} | {% trans "Actions" %} |
---|---|---|---|---|---|
{{ lottery.lottery_reference }} | {% if lottery.status == "active" %} {% trans "Active" %} {% elif lottery.status == "completed" %} {% trans "Completed" %} {% elif lottery.status == "cancelled" %} {% trans "Cancelled" %} {% else %} {{ lottery.status }} {% endif %} | {{ lottery.ticket_price|floatformat:2 }} | {{ lottery.total_pot|intcomma }} | {{ lottery.participant_count }} | {% trans "Dashboard" %} |
{% trans "Lottery Reference" %} | {% trans "User" %} | {% trans "Character" %} | {% trans "Prize Amount (ISK)" %} | {% trans "Won At" %} | {% trans "Distributed" %} | {% trans "Actions" %} |
---|---|---|---|---|---|---|
{{ winner.ticket.lottery.lottery_reference }} | {{ winner.ticket.user.username }} | {% if winner.character %} {{ winner.character }} {% else %} N/A {% endif %} | {{ winner.prize_amount|floatformat:2 }} | {{ winner.won_at|date:"Y-m-d H:i" }} | {% trans "No" %} |
{% trans "Name" %} | {% trans "Frequency" %} | {% trans "Ticket Price (ISK)" %} | {% trans "Duration" %} | {% trans "Payment Receiver" %} | {% trans "Number of Winners" %} | {% trans "Is Active" %} | {% trans "Actions" %} |
---|---|---|---|---|---|---|---|
{{ autolottery.name }} | {{ autolottery.frequency }} {{ autolottery.get_frequency_unit_display }} | {{ autolottery.ticket_price|floatformat:2 }} | {{ autolottery.duration_value }} {{ autolottery.get_duration_unit_display }} | {% if autolottery.payment_receiver %} {{ autolottery.payment_receiver.corporation_name }} {% else %} {% trans "Unknown Corporation" %} {% endif %} | {{ autolottery.winner_count }} | {% if autolottery.is_active %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %} | {% trans "Edit" %} {% trans "Delete" %} |