Better download link to the ODS file
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
40988348d3
commit
37b86d4ea0
File diff suppressed because it is too large
Load Diff
|
@ -62,35 +62,15 @@
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
{% if pool.bbb_url %}
|
||||||
<dt class="col-sm-3">{% trans "BigBlueButton link:" %}</dt>
|
<dt class="col-sm-3">{% trans "BigBlueButton link:" %}</dt>
|
||||||
<dd class="col-sm-9">{{ pool.bbb_url|urlize }}</dd>
|
<dd class="col-sm-9">{{ pool.bbb_url|urlize }}</dd>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if user.registration.is_admin or user.registration.is_volunteer %}
|
{% if user.registration.is_admin or user.registration.is_volunteer %}
|
||||||
{% if user.registration.is_admin or user.registration in pool.tournament.organizers.all or user.registration == pool.jury_president %}
|
{% if user.registration.is_admin or user.registration in pool.tournament.organizers.all or user.registration == pool.jury_president %}
|
||||||
<dt class="col-sm-3">{% trans "Notation sheet:" %}</dt>
|
<dt class="col-sm-3">{% trans "Notation sheets:" %}</dt>
|
||||||
<dd class="col-sm-9">
|
<dd class="col-sm-9">
|
||||||
<a class="btn btn-success" href="https://docs.google.com/spreadsheets/d/{{ pool.tournament.notes_sheet_id }}/edit">
|
|
||||||
<i class="fas fa-table"></i>
|
|
||||||
{% trans "Go to the Google Sheets page of the pool" %}
|
|
||||||
</a>
|
|
||||||
</dd>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
<div class="card bg-body shadow">
|
|
||||||
<div class="card-header text-center">
|
|
||||||
<h5>{% trans "Ranking" %}</h5>
|
|
||||||
</div>
|
|
||||||
<div class="card-body">
|
|
||||||
<ul>
|
|
||||||
{% for participation, note in notes %}
|
|
||||||
<li><strong>{{ participation.team }} :</strong> {{ note|floatformat }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% if user.registration.is_volunteer %}
|
|
||||||
<div class="card-footer text-center">
|
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-sm btn-info" href="{% url 'participation:pool_scale_note_sheet' pk=pool.pk %}">
|
<a class="btn btn-sm btn-info" href="{% url 'participation:pool_scale_note_sheet' pk=pool.pk %}">
|
||||||
<i class="fas fa-download"></i>
|
<i class="fas fa-download"></i>
|
||||||
|
@ -115,17 +95,54 @@
|
||||||
{% trans "Download all notation sheets" %}
|
{% trans "Download all notation sheets" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt class="col-sm-3">{% trans "Google Sheets Spreadsheet:" %}</dt>
|
||||||
|
<dd class="col-sm-9">
|
||||||
|
<a class="btn btn-sm btn-success" href="https://docs.google.com/spreadsheets/d/{{ pool.tournament.notes_sheet_id }}/edit">
|
||||||
|
<i class="fas fa-table"></i>
|
||||||
|
{% trans "Go to the Google Sheets page of the pool" %}
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<div class="card bg-body shadow">
|
||||||
|
<div class="card-header text-center">
|
||||||
|
<h5>{% trans "Ranking" %}</h5>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<ul>
|
||||||
|
{% for participation, note in notes %}
|
||||||
|
<li><strong>{{ participation.team }} :</strong> {{ note|floatformat }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% if user.registration.is_admin or user.registration.is_volunteer %}
|
||||||
|
{% if user.registration.is_admin or user.registration in pool.tournament.organizers.all or user.registration == pool.jury_president %}
|
||||||
|
<div class="card-footer text-center">
|
||||||
|
<div class="btn btn-group">
|
||||||
<button class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#uploadNotesModal">
|
<button class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#uploadNotesModal">
|
||||||
<i class="fas fa-upload"></i>
|
<i class="fas fa-upload"></i>
|
||||||
{% trans "Upload notes from a CSV file" %}
|
{% trans "Upload notes from a CSV file" %}
|
||||||
</button>
|
</button>
|
||||||
|
<a class="btn btn-sm btn-info" href="{% url 'participation:pool_notes_template' pk=pool.pk %}">
|
||||||
|
<i class="fas fa-download"></i>
|
||||||
|
{% trans "Download notation spreadsheet" %}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if user.registration.is_volunteer %}
|
{% if user.registration.is_volunteer %}
|
||||||
<div class="card-footer text-center">
|
<div class="card-footer text-center">
|
||||||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#updatePoolModal">{% trans "Update" %}</button>
|
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#updatePoolModal">
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
{% trans "Update" %}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,6 +6,14 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
<div id="form-content">
|
<div id="form-content">
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
{% url 'participation:pool_jury' pk=pool.jury as jury_url %}
|
||||||
|
{% blocktrans trimmed with jury_url=jury_url %}
|
||||||
|
Remember to export your spreadsheet as a CSV file before uploading it here.
|
||||||
|
Rows that are full of zeros are ignored.
|
||||||
|
Unknown juries are not considered.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</div>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<a class="alert-link" href="{% url "participation:pool_notes_template" pk=pool.pk %}">
|
<a class="alert-link" href="{% url "participation:pool_notes_template" pk=pool.pk %}">
|
||||||
{% trans "Download empty notation sheet" %}
|
{% trans "Download empty notation sheet" %}
|
||||||
|
|
Loading…
Reference in New Issue