Skip to content
Snippets Groups Projects
Commit 656443f7 authored by Martin Mareš's avatar Martin Mareš
Browse files

Org home: Odkaz na ocenění pro školní garanty

parent 9d4d89df
No related branches found
No related tags found
1 merge request!137Sazba diplomů
...@@ -102,6 +102,11 @@ def org_index(): ...@@ -102,6 +102,11 @@ def org_index():
get_stats(overview) get_stats(overview)
overview = filter_overview(overview) overview = filter_overview(overview)
show_certs_link = any(db.RoleType.garant_skola in o.role_set
and o.contest
and o.contest.state == db.RoundState.closed
for o in overview)
form_add_contest = mo.web.org_round.AddContestForm() form_add_contest = mo.web.org_round.AddContestForm()
return render_template( return render_template(
...@@ -109,6 +114,7 @@ def org_index(): ...@@ -109,6 +114,7 @@ def org_index():
overview=overview, overview=overview,
role_type_names=db.role_type_names, role_type_names=db.role_type_names,
form_add_contest=form_add_contest, form_add_contest=form_add_contest,
show_certs_link=show_certs_link,
) )
......
...@@ -82,6 +82,14 @@ ...@@ -82,6 +82,14 @@
{% endif %} {% endif %}
{% if show_certs_link %}
<div class='btn-group'>
<a class='btn btn-primary' href='{{ url_for('org_school_results_all') }}'>Ocenění Vašich studentů</a>
</div>
{% endif %}
{% if g.user.is_admin %} {% if g.user.is_admin %}
<h3>Nástroje pro správce</h3> <h3>Nástroje pro správce</h3>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment