Select Git revision
org_contest_list.html
org_contest_list.html 1.58 KiB
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% set round = contest.round %}
{% block title %}
Seznam účastníků {% if site %}v soutěžním místě {{ site.name }}{% else %}{{ contest.place.name_locative() }}{% endif %}
{% endblock %}
{% block breadcrumbs %}
{{ contest_breadcrumbs(round=round, contest=contest, site=site, action="Seznam účastníků") }}
{% endblock %}
{% set id = contest.contest_id %}
{% set site_id = site.place_id if site else None %}
{% block body %}
<div class="form-frame">
<form action="" method="GET" class="form form-inline" role="form">
<div class="form-row">
{% if not site %}
{{ wtf.form_field(filter.participation_place, placeholder='Kód', size=8) }}
{% endif %}
{{ wtf.form_field(filter.school, placeholder='Kód', size=8) }}
{{ wtf.form_field(filter.participation_state) }}
<div class="btn-group">
{{ wtf.form_field(filter.submit, class='btn btn-primary') }}
{% if table %}
<button class="btn btn-default" name="format" value="cs_csv" title="Stáhnout celý výsledek v CSV">↓ CSV</button>
<button class="btn btn-default" name="format" value="tsv" title="Stáhnout celý výsledek v TSV">↓ TSV</button>
{% endif %}
</div>
{% if not site %}
</div>
<div class="form-row" style="margin-top: 5px;">
{% endif %}
Celkem <b>{{count|inflected('nalezený účastník', 'nalezení účastníci', 'nalezených účastníků')}}</b>.
</div>
</form>
</div>
{% if table %}
{% include 'parts/org_participants_table_actions.html' %}
{% else %}
{% include 'parts/org_participants_emails.html' %}
{% endif %}
{% endblock %}