{% extends "jury/base.html.twig" %} {% import "jury/jury_macros.twig" as macros %} {% block title %}Contests - {{ parent() }}{% endblock %} {% block extrahead %} {{ parent() }} {{ macros.table_extrahead() }} {{ macros.toggle_extrahead() }} {% endblock %} {% block content %}
| {% if data.icon is defined %} {% endif %} | {{ data.label }}: | {{ data.time }} | {% if is_granted('ROLE_ADMIN') %}{% if data.show_button %} {% set button_label = type ~ " now" %} {{ button(path('jury_contest_donow', {'contestId': contest.cid, 'time': type}), button_label, 'primary btn-sm') }} {% endif %} {% if data.extra_button is defined %} {{ button(path('jury_contest_donow', {'contestId': contest.cid, 'time': data.extra_button.type}), data.extra_button.label, 'primary btn-sm') }} {% endif %} | {% endif %}
{{ upcoming_contest.name }} ({{ upcoming_contest.shortname }}); active from {{ upcoming_contest.activatetime | printtime('D d M Y H:i:s T') }}
{{ button(path('jury_contest_donow', {'contestId': upcoming_contest.cid, 'time': 'activate'}), 'Activate now', 'primary') }}{{ button(path('jury_contest_add'), 'Add new contest', 'primary', 'plus') }} {{ button(path('jury_import_export', {'_fragment':'contests'}), 'Import contest', 'primary', 'upload') }}
{% endif %} {% endblock %} {% block extrafooter %} {{ macros.toggle_autosubmit_extrafooter() }} {% endblock %}