mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 17:58:24 +02:00
First interface to start draws
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -7,9 +7,9 @@
|
||||
{% for tournament in tournaments %}
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link{% if forloop.first %} active{% endif %}"
|
||||
id="tab-{{ tournament.name|slugify }}" data-bs-toggle="tab"
|
||||
data-bs-target="#tab-{{ tournament.name|slugify }}-pane" type="button" role="tab"
|
||||
aria-controls="tab-{{ tournament.name|slugify }}-pane" aria-selected="true">
|
||||
id="tab-{{ tournament.id }}" data-bs-toggle="tab"
|
||||
data-bs-target="#tab-{{ tournament.id }}-pane" type="button" role="tab"
|
||||
aria-controls="tab-{{ tournament.id }}-pane" aria-selected="true">
|
||||
{{ tournament.name }}
|
||||
</button>
|
||||
</li>
|
||||
@ -19,8 +19,8 @@
|
||||
<div class="tab-content" id="tab-content">
|
||||
{% for tournament in tournaments %}
|
||||
<div class="tab-pane fade{% if forloop.first %} show active{% endif %}"
|
||||
id="tab-{{ tournament.name|slugify }}-pane" role="tabpanel"
|
||||
aria-labelledby="tab-{{ tournament.name|slugify }}" tabindex="0">
|
||||
id="tab-{{ tournament.id }}-pane" role="tabpanel"
|
||||
aria-labelledby="tab-{{ tournament.id }}" tabindex="0">
|
||||
{% include "draw/tournament_content.html" with tournament=tournament %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
@ -28,7 +28,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block extrajavascript %}
|
||||
{{ tournaments|json_script:'tournaments_list' }}
|
||||
{{ tournaments_simplified|json_script:'tournaments_list' }}
|
||||
|
||||
<script src="{% static 'draw.js' %}"></script>
|
||||
{% endblock %}
|
||||
|
@ -1,6 +1,27 @@
|
||||
{{ tournament.name }}
|
||||
{% load i18n %}
|
||||
|
||||
<!-- This is only a test -->
|
||||
<textarea id="chat-log-{{ tournament.id }}"></textarea>
|
||||
<input id="chat-message-{{ tournament.id }}-input">
|
||||
<input id="chat-message-{{ tournament.id }}-submit" type="submit">
|
||||
|
||||
{% if tournament.draw %}
|
||||
Tirage lancé !
|
||||
{% else %}
|
||||
<div class="alert alert-warning">
|
||||
{% trans "The draw has not started yet." %}
|
||||
|
||||
{% if user.registration.is_volunteer %}
|
||||
<form id="format-form-{{ tournament.id }}">
|
||||
<div class="col-md-3">
|
||||
<div class="input-group">
|
||||
<label class="input-group-text" for="format-{{ tournament.id }}">
|
||||
{% trans "Configuration:" %}
|
||||
</label>
|
||||
<input type="text" class="form-control" id="format-{{ tournament.id }}"
|
||||
pattern="^[345](\+[345])*$"
|
||||
placeholder="{{ tournament.best_format }}"
|
||||
value="{{ tournament.best_format }}">
|
||||
<button class="btn btn-success input-group-btn">{% trans "Start!" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user