{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% set in_hier = ctx.hier_id != None %} {% set can_manage_round = rights.have_right(Right.manage_round) and not in_hier %} {% set can_manage_contest = rights.have_right(Right.manage_contest) %} {% set can_view_contestants = rights.have_right(Right.view_contestants) %} {% set can_handle_submits = rights.have_right(Right.view_submits) %} {% set offer_upload = rights.offer_upload_feedback() %} {% set offer_edit_points = rights.offer_edit_points() %} {% set can_view_statement = rights.can_view_statement() %} {% set can_add_contest = g.gatekeeper.rights_generic().have_right(Right.add_contest) %} {% set possible_rights_elsewhere = ctx.possible_rights_elsewhere() %} {% macro rights_elsewhere_info() %} 🛈 {% endmacro %} {% block title %} {% if in_hier %} {{ round.round_code() }}: {{ ctx.hier_place.name }} {% else %} {{ round.name }} {{ round.round_code() }} {% endif %} {% endblock %} {% block breadcrumbs %} {{ ctx.breadcrumbs() }} {% endblock %} {% block body %}
Parametry kola{% if can_manage_round %} (nelze editovat){% endif %}
Ročník{{ round.year }}
Kategorie{{ round.category }}
Pořadí{{ round.seq }} {% if round.part > 0 %}
Část{{ round.part_code() }}{% endif %}
Oblast{{ round.get_level().name }}
Vaše role{% if g.user.is_admin %}správce{% elif roles %}{{ roles|join(", ") }}{% else %}–{% endif %} {% if group_rounds|length > 1 %}
Skupina kol: {% for r in group_rounds %} {% if r == round %}{{ r.name }} {{ r.round_code() }} (toto kolo)
{% else %}{{ r.name }} {{ r.round_code() }}
{% endif %} {% endfor %} {% endif %}
Základní nastavení
Název{{ round.name }}
Typ{{ round.round_type.friendly_name() }}
Stav{{ round.state.friendly_name() }} {% if round.state == RoundState.delegate %} (bylo {{ round.last_state.friendly_name() }}) {% endif %} {% with state=round.ct_state() %}
Stav pro účastníky{{ state.friendly_name() }} {% endwith %}
Režim přihlašování{{ round.enroll_mode.friendly_name() }}
Popis v přihlášce{{ round.enroll_advert }}
Doporučené ročníky {{ round.min_rec_grade|none_value("0") }} – {{ round.max_rec_grade|none_value("∞") }}
Online odevzdávánídefault {{ round.online_submit|yes_no }}
Termíny a zadání
Účastníci se přihlašují do{{ round.enroll_deadline|time_and_timedelta }}
Účastníci vidí zadání od{{ round.ct_tasks_start|time_and_timedelta }}
Účastníci odevzdávají do{{ round.ct_submit_end|time_and_timedelta }}
Dozor vidí zadání od{{ round.pr_tasks_start|time_and_timedelta }}
Dozor odevzdává do{{ round.pr_submit_end|time_and_timedelta }}
Zadání {% if round.tasks_file %} {% if not statement_exists %} soubor neexistuje {% elif can_view_statement %} stáhnout {% elif possible_rights_elsewhere %} viz stránka vaší soutěže/místa {{ rights_elsewhere_info() }} {% else %} není dostupné {% endif %} {% else %} – {% endif %}
Nastavení výsledkové listiny{% if round.is_subround() %} (přejato z {{ round.master.round_code() }}) {% endif %}
Výsledková listina{{ round.master.score_mode.friendly_name() }}
Hranice bodů pro vítěze{{ round.master.score_winner_limit|decimal|none_value(Markup('nenastaveno')) }}
Hranice bodů pro úspěšné řešitele{{ round.master.score_successful_limit|decimal|none_value(Markup('nenastaveno')) }}
Hranice bodů pro postup{{ round.master.score_advance_limit|decimal|none_value(Markup('nenastaveno')) }}
Udělovat pochvalná uznání{{ round.master.score_has_hm|yes_no }}
Přesnost bodování{{ round.master.points_step_name() }}
Automaticky publikovat na webu MO{{ round.master.export_score_to_mo_web|yes_no }}
{% if can_view_contestants or can_manage_contest or can_manage_round or round.has_messages %}{# Ostatní práva implikují některé z těchto #}
{% if can_view_contestants %} Seznam účastníků {% endif %} {% if can_view_contestants and round.state in [RoundState.grading, RoundState.graded, RoundState.closed, RoundState.delegate] %} Výsledky {% endif %} {% if can_manage_contest %} Importovat účastníky Importovat organizátory {% endif %} {% if offer_edit_points %} Importovat body {% endif %} {% if can_manage_round %} Nastavení a termíny Zadání {% endif %} {% if round.has_messages %} Zprávičky {% endif %} {% if g.user.is_admin and not in_hier %} Historie {% endif %}
{% endif %} {% if possible_rights_elsewhere %}

Další akce můžete provádět na stránce své soutěže nebo soutěžního místa. {{ rights_elsewhere_info() }} {% endif %}

Soutěže

{% if reg_total.num_contests %} {% set show_contests = reg_stats[0].contest != None %} {% if show_contests %} {% for rs in reg_stats %} {% if show_contests %}
{{ round.get_level().name|capitalize }} Stav {% else %} {{ reg_stats[0].region.type_name()|capitalize }} Počet soutěží Stavy soutěží {% endif %} Počet účastníků Počet přihlášek
{{ rs.region.name }} {% with state=rs.contest.state %} {{ state.friendly_name() }} {% endwith %} {% if rs.contest.master.scoretable_id %} – výsledky {% endif %} {% else %} {{ rs.region.name }} {{ rs.num_contests }} {% for s in rs.contest_states %}{% if not loop.first %} / {% endif %}{{ s.friendly_name() }}{% endfor %} {% endif %} {{ rs.num_active_pants }} {{ rs.num_unconfirmed_pants }} {% endfor %}
Celkem {% if show_contests %} {% else %} {{ reg_total.num_contests }} {% endif %} {{ reg_total.num_active_pants }} {{ reg_total.num_unconfirmed_pants }}
{% else %}

Zatím nebyly založeny žádné soutěže. {% endif %} {% if can_add_contest %}

{{ form_add_contest.csrf_token() }} {{ wtf.form_field(form_add_contest.place) }} {{ wtf.form_field(form_add_contest.create_contest) }} {% if can_manage_round and round.seq > 1 %} Založit všechny podle předchozího kola {% endif %}
{% endif %} {% if show_close_contests %}
Ukončit soutěže
{% endif %} {% if can_manage_round %}

Dávky pro správu kola

{% if round_jobs %} {% for j in round_jobs %}
ID Název Naplánována na Stav Akce
{{ j.job_id }} {{ j.description }} {% if j.waiting_until %}{{ j.waiting_until|time_and_timedelta}}{% endif %} {{ j.state.friendly_name() }} {% endfor %}
{% else %}

Žádné nejsou naplánovány. {% endif %} {% endif %}

Úlohy

{% if task_info %} {% for task, sol_count in task_info %} {% endfor %}
Kód Název Typ Odevzdaná řešení Maximum bodů {% if can_manage_round %}Akce{% endif %} {% if can_handle_submits or offer_upload %}Dávkové operace{% endif %}
{{ task.code }} {{ task.name }} {{ task.type.friendly_name() }} {{ sol_count }} {{ task.max_points|decimal|none_value('–') }} {% if can_manage_round %}
Editovat {% if sol_count == 0 %}
{{ form_delete_task.csrf_token() }}
{% endif %} {% if g.user.is_admin %} Historie {% endif %}
{% endif %} {% if can_handle_submits or offer_upload or offer_edit_points %}
{% if can_handle_submits and task.type == TaskType.regular %} Stáhnout ZIP {% endif %} {% if offer_upload and task.type == TaskType.regular %} Nahrát ZIP {% endif %} {% if offer_edit_points %} Nahrát body {% endif %}
{% endif %}
{% else %}

Zatím nebyly přidány žádné úlohy.

{% endif %} {% if can_manage_round %} Nová úloha {% endif %} {% endblock %}