Skip to content
Snippets Groups Projects
Select Git revision
  • 10930f2ba0fbe5a3d15ae4c21fca7c60c4544ee5
  • 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_user.html

Blame
  • org_user.html 3.64 KiB
    {% extends "base.html" %}
    {% import "bootstrap/wtf.html" as wtf %}
    {% block title %}Účastník: {{ user.full_name() }}{% endblock %}
    {% block body %}
    
    <table class=data>
    <tr><td>Jméno:<td>{{ user.first_name }}
    <tr><td>Příjmení:<td>{{ user.last_name }}
    <tr><td>E-mail:<td>{{ user.email|mailto }}
    {% if user.is_admin %}<tr><td>Správce:<td>ano{% endif %}
    {% if user.is_org %}<tr><td>Organizátor:<td>ano{% endif %}
    <tr><td>Účet založen:<td>{{ user.created_at|timeformat }}
    <tr><td>Poslední přihlášení:{% if user.last_login_at %}<td>{{ user.last_login_at|timeformat }}{% else %}<td class="error"><i>Zatím nepřihlášen</i>{% endif %}
    {% if user.reset_at %}<tr><td>Reset hesla:<td>{{ user.reset_at|timeformat }}{% endif %}
    <tr><td>Poznámka:<td style="white-space: pre-line;">{{ user.note }}
    <tr><td>Testovací účet:<td>{{ user.is_test|yes_no }}
    <tr><td>Mailové notifikace:<td>{{ user.email_notify|yes_no }}
    </table>
    
    <div class="btn-group" role="group">
    {% if can_edit %}
    	<a class="btn btn-primary" href="{{ url_for('org_user_edit', id=user.user_id) }}">Editovat</a>
    {% endif %}
    {% if resend_invite_form %}
    <form method=POST class='btn-group' onsubmit='return confirm("Poslat účastníkovi e-mail s odkazem na vytvoření hesla?");'>
    	{{ resend_invite_form.csrf_token }}
    	<button class="btn btn-default" type='submit' name='resend_invite' value='yes'>
    		Znovu poslat zvací e-mail
    	</button>
    </form>
    {% endif %}
    {% if g.user.is_admin %}
    	<a class="btn btn-default" href="{{ log_url('user', user.user_id) }}">Historie</a>
    {% endif %}
    {% if can_incarnate %}
    <form action="{{ url_for('incarnate', id=user.user_id) }}" method=POST class='btn-group'>
    	<button class="btn btn-default" type='Submit'>Převtělit se</button>
    </form>
    {% endif %}
    </div>
    
    <h3>Registrace v ročnících</h3>
    {% if participants.count() %}
    <table class="data full">
    	<thead>
    		<tr>
    			<th>Ročník<th>Škola<th>Třída<th>Rok narození<th>Akce
    		</tr>
    	</thead>
    {% for participant in participants %}
    	<tr>
    		<td>{{ participant.year }}
    		<td><a href="{{ url_for('org_place', id=participant.school) }}">{{ participant.school_place.name }}</a>
    		<td>{{ participant.grade }}
    		<td>{{ participant.birth_year }}
    		<td><a class="btn btn-xs btn-primary" href="{{ url_for('org_user_participant_edit', user_id=user.user_id, year=participant.year) }}">Editovat</a>
    	</tr>
    {% endfor %}
    </table>
    {% else %}
    <p>Žádná registrace v ročníku</p>
    {% endif %}
    
    <h3>Účast v kolech</h3>
    {% if participations %}
    <table class="data full">
    	<thead>
    		<tr>
    			<th>Ročník<th>Kategorie<th>Kolo<th>Místo<th>Stav účasti<th>Odkazy
    		</tr>