diff --git a/mo/web/jinja.py b/mo/web/jinja.py index b0b8d6545ef2a0d48727e5255d8b7b60729d7336..3f8dca08279ea73c599e1075ce4c07c151252ec0 100644 --- a/mo/web/jinja.py +++ b/mo/web/jinja.py @@ -61,6 +61,7 @@ jg.update(JobType=db.JobType) jg.update(JobState=db.JobState) jg.update(RoundType=db.RoundType) jg.update(CertType=db.CertType) +jg.update(RoundEnrollMode=db.RoundEnrollMode) # Další typy: jg.update(Markup=Markup) diff --git a/mo/web/templates/org_round.html b/mo/web/templates/org_round.html index 6afca009dc01c6deb7faf7c006cebb001d2486de..8c057824d4729bfcfe28999917cc6b550f93cd05 100644 --- a/mo/web/templates/org_round.html +++ b/mo/web/templates/org_round.html @@ -149,7 +149,9 @@ <th>Stavy soutěží {% endif %} <th><a href='{{ ctx.url_for('org_contestant_stats') }}' }}' title='Statistiky účastníků'>Počet účastníků</a> + {% if round.enroll_mode == RoundEnrollMode.confirm %} <th>Počet přihlášek + {% endif %} </tr> </thead> {% for rs in reg_stats %} @@ -168,7 +170,9 @@ <td>{% for s in rs.contest_states %}{% if not loop.first %} / {% endif %}<span class='rstate-{{s.name}}'>{{ s.friendly_name() }}</span>{% endfor %} {% endif %} <td>{{ rs.num_active_pants }} + {% if round.enroll_mode == RoundEnrollMode.confirm %} <td>{{ rs.num_unconfirmed_pants }} + {% endif %} {% endfor %} <tfoot> <tr> @@ -180,7 +184,9 @@ <th> {% endif %} <th>{{ reg_total.num_active_pants }} + {% if round.enroll_mode == RoundEnrollMode.confirm %} <th>{{ reg_total.num_unconfirmed_pants }} + {% endif %} </tr> </tfoot> </table>