Skip to content
Snippets Groups Projects
Select Git revision
  • 62139a3e7addd111a0e0836fec51b50a61f8d5f0
  • devel default
  • master
  • fo
  • jirka/typing
  • fo-base
  • mj/submit-images
  • jk/issue-96
  • jk/issue-196
  • honza/add-contestant
  • honza/mr7
  • honza/mrf
  • honza/mrd
  • honza/mra
  • honza/mr6
  • honza/submit-images
  • honza/kolo-vs-soutez
  • jh-stress-test-wip
  • shorten-schools
19 results

org_round_list.html

Blame
  • org_round_list.html 2.64 KiB
    {% extends "base.html" %}
    {% import "bootstrap/wtf.html" as wtf %}
    
    {% block title %}Seznam účastníků kola {{ round.round_code() }}{% endblock %}
    {% block breadcrumbs %}
    {{ contest_breadcrumbs(round=round, action="Seznam účastníků" if table else "E-maily", table=False if table else True) }}
    {% endblock %}
    {% set id = round.round_id %}
    
    {% block body %}
    <div class="form-frame">
    <form action="" method="GET" class="form form-inline" role="form">
    	<div class="form-row">
    		{{ wtf.form_field(filter.contest_place, placeholder='Kód', size=8) }}
    		{{ wtf.form_field(filter.participation_place, placeholder='Kód', size=8) }}
    		{{ wtf.form_field(filter.school, placeholder='Kód', size=8) }}
    		{{ wtf.form_field(filter.participation_state) }}
    	</div>
    	<div class="form-row" style="margin-top: 5px;">
    		<div class="btn-group">
    			{{ wtf.form_field(filter.submit, class='btn btn-primary') }}
    			{% if table %}
    			<button class="btn btn-default" name="format" value="cs_csv" title="Stáhnout celý výsledek v CSV">↓ CSV</button>
    			<button class="btn btn-default" name="format" value="tsv" title="Stáhnout celý výsledek v TSV">↓ TSV</button>
    			{% endif %}
    		</div>
    		{% if table %}
    		<div style="float: right">
    			Stránka {{ filter.offset.data // filter.limit.data + 1}} z {{ (count / filter.limit.data)|round(0, 'ceil')|int }}:
    			<div class="btn-group">
    				{% if filter.offset.data > 0 %}
    					{{ wtf.form_field(filter.previous) }}
    				{% else %}
    					<button class="btn" disabled>Předchozí</button>
    				{% endif %}
    				{% if count > filter.offset.data + filter.limit.data %}
    					{{ wtf.form_field(filter.next) }}
    				{% else %}
    					<button class="btn" disabled>Další</button>
    				{% endif %}
    			</div>
    			<input type="hidden" name="offset" value="{{filter.offset.data}}">
    			<input type="hidden" name="limit" value="{{filter.limit.data}}">
    		</div>
    		{% set max = filter.offset.data + filter.limit.data if filter.offset.data + filter.limit.data < count else count %}
    		{% if count > 0 %}
    			Zobrazuji záznamy <b>{{filter.offset.data + 1}}</b> až <b>{{ max }}</b> z <b>{{count}} nalezených účastníků</b>.
    		{% else %}
    			<b>Nebyly nalezeny žádné záznamy účastníků.</b>
    		{% endif %}
    		{% else %}
    		Celkem <b>{{count|inflected('nalezený účastník', 'nalezení účastníci', 'nalezených účastníků')}}</b>.
    		{% endif %}
    	</div>
    </form>
    </div>
    
    {% if table %}
    	{% include 'parts/org_participants_table_actions.html' %}
    	{% if form_actions %}
    	<br>
    	<i>Upozornění: Můžete editovat jen účastníky soutěžící v oblastech, ke kterým máte právo.</i>
    	{% endif %}
    {% else %}
    	{% include 'parts/org_participants_emails.html' %}
    {% endif %}
    {% endblock %}