Skip to content
Snippets Groups Projects

Zakládání soutěží z orgovské hlavní stránky

Merged Martin Mareš requested to merge mj/zakladani into devel
3 files
+ 34
2
Compare changes
  • Side-by-side
  • Inline
Files
3
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}Přístup pro organizátory{% endblock %}
{% block body %}
@@ -61,7 +62,12 @@
{% endif %}
<td>{% for r in o.role_list %}{{ role_type_names[r] }}{% if not loop.last %}<br>{% endif %}{% endfor %}
{% if create %}
<td><a class="btn btn-xs btn-success" href='{{ detail_url }}'>Založit</a>
<td>
<form action="{{ url_for('org_round_create_contest', round_id=o.round.round_id) }}" method="POST" class="form-inline">
{{ form_add_contest.csrf_token() }}
<input name="place" type=hidden value="{{ o.place.get_code() }}">
<input class="btn btn-xs btn-success" name="create_contest" type="submit" value="Založit">
</form>
{% else %}
<td><a class="btn btn-xs btn-primary" href='{{ detail_url }}'>Detail</a>
{% endif %}
Loading