mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-11-27 03:33:01 +00:00
68 lines
3.3 KiB
HTML
68 lines
3.3 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load getconfig i18n django_tables2 %}
|
|
|
|
{% block content %}
|
|
<div class="card bg-light shadow">
|
|
<div class="card-header text-center">
|
|
<h4>{{ title }}</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<dl class="row">
|
|
<dt class="col-xl-6 text-right">{% trans 'organizers'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{% autoescape off %}{{ tournament.linked_organizers|join:", " }}{% endautoescape %}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'size'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.size }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'place'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.place }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'price'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{% if tournament.price %}{{ tournament.price }} €{% else %}{% trans "Free" %}{% endif %}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'dates'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{% trans "From" %} {{ tournament.date_start }} {% trans "to" %} {{ tournament.date_end }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'date of registration closing'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.date_inscription }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'date of maximal solution submission'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.date_solutions }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'date of maximal syntheses submission for the first round'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.date_syntheses }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'date when solutions of round 2 are available'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.date_solutions_2 }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'date of maximal syntheses submission for the second round'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.date_syntheses_2 }}</dd>
|
|
|
|
<dt class="col-xl-6 text-right">{% trans 'description'|capfirst %}</dt>
|
|
<dd class="col-xl-6">{{ tournament.description }}</dd>
|
|
</dl>
|
|
|
|
{% if user.is_authenticated and user.admin %}
|
|
<div class="alert alert-info">
|
|
<a href="mailto:contact@tfjm.org?subject=TFJM²%20{{ "TFJM_YEAR"|get_env }}&bcc={{ team_users_emails|join:"," }}">{% trans "Send a mail to all people in this tournament" %}</a><br>
|
|
<a href="mailto:contact@tfjm.org?subject=TFJM²%20{{ "TFJM_YEAR"|get_env }}&bcc={{ valid_team_users_emails|join:"," }}">{% trans "Send a mail to all people in this tournament that are in a valid team" %}</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if user.admin or user in tournament.organizers.all %}
|
|
<div class="card-footer text-center">
|
|
<a href="{% url "tournament:update" pk=tournament.pk %}"><button class="btn btn-secondary">{% trans "Edit tournament" %}</button></a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h3>{% trans "Teams" %}</h3>
|
|
<div id="teams_table">
|
|
{% render_table teams %}
|
|
</div>
|
|
{% endblock %}
|