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

Na stránce kola neukazujeme počet přihlášek zbytečně

Ukazuje se jen tehdy, vyžaduje-li kolo potvrzení přihlášek
organizátorem.

Closes #427.
parent 65b6698a
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,7 @@ jg.update(JobType=db.JobType) ...@@ -61,6 +61,7 @@ jg.update(JobType=db.JobType)
jg.update(JobState=db.JobState) jg.update(JobState=db.JobState)
jg.update(RoundType=db.RoundType) jg.update(RoundType=db.RoundType)
jg.update(CertType=db.CertType) jg.update(CertType=db.CertType)
jg.update(RoundEnrollMode=db.RoundEnrollMode)
# Další typy: # Další typy:
jg.update(Markup=Markup) jg.update(Markup=Markup)
......
...@@ -149,7 +149,9 @@ ...@@ -149,7 +149,9 @@
<th>Stavy soutěží <th>Stavy soutěží
{% endif %} {% endif %}
<th><a href='{{ ctx.url_for('org_contestant_stats') }}' }}' title='Statistiky účastníků'>Počet účastníků</a> <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 <th>Počet přihlášek
{% endif %}
</tr> </tr>
</thead> </thead>
{% for rs in reg_stats %} {% for rs in reg_stats %}
...@@ -168,7 +170,9 @@ ...@@ -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 %} <td>{% for s in rs.contest_states %}{% if not loop.first %} / {% endif %}<span class='rstate-{{s.name}}'>{{ s.friendly_name() }}</span>{% endfor %}
{% endif %} {% endif %}
<td>{{ rs.num_active_pants }} <td>{{ rs.num_active_pants }}
{% if round.enroll_mode == RoundEnrollMode.confirm %}
<td>{{ rs.num_unconfirmed_pants }} <td>{{ rs.num_unconfirmed_pants }}
{% endif %}
{% endfor %} {% endfor %}
<tfoot> <tfoot>
<tr> <tr>
...@@ -180,7 +184,9 @@ ...@@ -180,7 +184,9 @@
<th> <th>
{% endif %} {% endif %}
<th>{{ reg_total.num_active_pants }} <th>{{ reg_total.num_active_pants }}
{% if round.enroll_mode == RoundEnrollMode.confirm %}
<th>{{ reg_total.num_unconfirmed_pants }} <th>{{ reg_total.num_unconfirmed_pants }}
{% endif %}
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment