Skip to content
Snippets Groups Projects
Commit e235f83f authored by Jan Prachař's avatar Jan Prachař
Browse files

Přidat účastníka: oprava tlačítek

parent 1da68240
Branches
No related tags found
1 merge request!34Formulář na přidání účastníka do soutěže
...@@ -49,6 +49,9 @@ ...@@ -49,6 +49,9 @@
{% if state != RoundState.preparing %} {% if state != RoundState.preparing %}
<a class="btn btn-primary" href='{{ url_for('org_contest_solutions', id=contest.contest_id, site_id=site_id) }}'>Odevzdaná řešení</a> <a class="btn btn-primary" href='{{ url_for('org_contest_solutions', id=contest.contest_id, site_id=site_id) }}'>Odevzdaná řešení</a>
{% endif %} {% endif %}
{% if can_manage and site %}
<a class="btn btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=site_id) }}">+ Přidat účastníka</a>
{% endif %}
{% if not site %} {% if not site %}
{% if state in [RoundState.grading, RoundState.closed] %} {% if state in [RoundState.grading, RoundState.closed] %}
<a class="btn btn-primary" href='{{ url_for('org_score', contest_id=contest.contest_id) }}'>Výsledky</a> <a class="btn btn-primary" href='{{ url_for('org_score', contest_id=contest.contest_id) }}'>Výsledky</a>
...@@ -82,7 +85,7 @@ ...@@ -82,7 +85,7 @@
<td> <td>
<a class="btn btn-xs btn-primary" href="{{ url_for('org_contest', id=contest.contest_id, site_id=place.place_id) }}">Detail</a> <a class="btn btn-xs btn-primary" href="{{ url_for('org_contest', id=contest.contest_id, site_id=place.place_id) }}">Detail</a>
{% if can_manage %} {% if can_manage %}
<a class="btn btn-xs btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=place.place_id) }}">Přidat účastníka</a> <a class="btn btn-xs btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=place.place_id) }}">+ Přidat účastníka</a>
{% endif %} {% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
...@@ -99,8 +102,8 @@ ...@@ -99,8 +102,8 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
<div class="btn-group"> <div class="btn-group">
{% if can_manage %} {% if can_manage and not site %}
<a class="btn btn-default" href='{{ url_for('org_contest_add_user', id=contest.contest_id) }}'>Přidat účastníka</a> <a class="btn btn-default" href='{{ url_for('org_contest_add_user', id=contest.contest_id) }}'>+ Přidat účastníka</a>
{% endif %} {% endif %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment