mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 11:37:27 +02:00
Send syntheses
This commit is contained in:
15
templates/tournament/syntheses_list.html
Normal file
15
templates/tournament/syntheses_list.html
Normal file
@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load i18n crispy_forms_filters django_tables2 %}
|
||||
|
||||
{% block content %}
|
||||
{% if form %}
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<button class="btn btn-block btn-success">{% trans "Submit" %}</button>
|
||||
</form>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% render_table table %}
|
||||
{% endblock %}
|
18
templates/tournament/syntheses_orga_list.html
Normal file
18
templates/tournament/syntheses_orga_list.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load i18n django_tables2 %}
|
||||
|
||||
{% block content %}
|
||||
{% render_table table %}
|
||||
|
||||
<hr>
|
||||
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<div class="btn-group btn-block">
|
||||
{% for tournament in tournaments.all %}
|
||||
<button name="tournament_zip" value="{{ tournament.id }}" class="btn btn-success">{% blocktrans %}{{ tournament }} — ZIP{% endblocktrans %}</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
@ -10,7 +10,7 @@
|
||||
<div class="card-body">
|
||||
<dl class="row">
|
||||
<dt class="col-xl-6 text-right">{% trans 'organizers'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{{ tournament.organizers.all|join:", " }}</dd>
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user