Skip to content
Snippets Groups Projects

Nastavení kol a úloh

Merged Jiří Setnička requested to merge jirka/manage_round into devel
3 files
+ 160
3
Compare changes
  • Side-by-side
  • Inline

Files

+ 32
0
@@ -38,4 +38,36 @@
<p>Zatím nebyly založeny v žádné oblasti.
{% endif %}
<h3>Úlohy</h3>
{% if can_manage_round %}
<a class="btn btn-primary right-float" href="{{ url_for('org_round_task_new', id=round.round_id) }}">Nová úloha</a>
{% endif %}
{% if tasks %}
<table class=data>
<thead>
<tr>
<th>Kód</th>
<th>Název</th>
{% if can_manage_round %}<th>Akce</th>{% endif %}
</tr>
</thead>
{% for task in tasks %}
<tr>
<td>{{ task.code }}</td>
<td>{{ task.name }}</td>
{% if can_manage_round %}<td>
<form action="" method="POST" onsubmit="return confirm('Opravdu nenávratně smazat?')" class="btn-group">
{{ form_delete_task.csrf_token() }}
<input type="hidden" name="delete_task_id" value="{{ task.task_id }}">
<a class="btn btn-xs btn-primary" href="{{ url_for('org_round_task_edit', id=round.round_id, task_id=task.task_id) }}">Editovat</a>
<button type="submit" class="btn btn-xs btn-danger">Smazat</button>
</form>
</td>{% endif %}
</tr>
{% endfor %}
</table>
{% else %}
<p>Zatím nebyly přidány žádné úlohy.</p>
{% endif %}
{% endblock %}
Loading