Skip to content
Snippets Groups Projects

Odkazy na soutěže z míst

Merged Jiří Kalvoda requested to merge jk/issue-213 into devel
Files
2
@@ -55,4 +55,29 @@
<a class="btn btn-primary" href="{{ url_for('org_place_new_child', id=place.place_id) }}">Přidat nové podřízené místo</a>
{% endif %}
{% endif %}
<h3>Soutěže</h3>
{% if not contests %}
<p>K tomuto místu nejsou přidružené žádné soutěže.
{% else %}
<table class=data>
<thead><tr>
<th>ID
<th>Ročník
<th>Kat.
<th>Název
<th>Stav
</thead>
{% for c in contests %}
<tr>
{% set r = c.round %}
<td><a href='{{ url_for('org_contest', id=c.contest_id) }}'>{{ r.round_code() }}</a>
<td>{{ r.year }}
<td>{{ r.category }}
<td>{{ r.name }}
<td class='rstate-{{c.state.name}}'>{{ c.state.friendly_name() }}
{% endfor %}
</table>
{% endif %}
{% endblock %}
Loading