{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block title %}{% if user.is_admin %}Správce:{% else %}Organizátor:{% endif %} {{ user.full_name() }}{% endblock %} {% block body %}
Jméno:{{ user.first_name }}
Příjmení:{{ user.last_name }}
E-mail:{{ user.email|mailto }} {% if user.is_admin %}
Správce:ano{% endif %} {% if user.is_org %}
Organizátor:ano{% endif %}
Účet založen:{{ user.created_at|timeformat }}
Poslední přihlášení:{{ user.last_login_at|timeformat }} {% if user.reset_at %}
Reset hesla:{{ user.reset_at|timeformat }}{% endif %}
Poznámka:{{ user.note }}
{% if can_edit %} Editovat {% endif %} {% if resend_invite_form %}
{{ resend_invite_form.csrf_token }}
{% endif %} {% if g.user.is_admin %} Historie {% endif %} {% if can_incarnate %}
{% endif %}
{% if user.is_org or user.is_admin %}

Role

{% if can_assign_rights %}

Přidělení nové role

Můžete přidělit jen roli, která je podmnožinou nějaké vaší role (včetně omezení na oblast, kolo, …).

Pokud roli omezíte na kategorii Z bude fungovat pro všechny kategorie začínající na Z. {% if role_errors %}

{% endif %}
{{ form_add_role.csrf_token() }} {{ wtf.form_field(form_add_role.role) }} {{ wtf.form_field(form_add_role.place_code, placeholder='Kód', size=8) }} {{ wtf.form_field(form_add_role.year, type='number', size=3, maxlength=2) }} {{ wtf.form_field(form_add_role.category, size=2, maxlength=2) }} {{ wtf.form_field(form_add_role.seq, type='number', size=3, maxlength=2) }} {{ wtf.form_field(form_add_role.submit, class="btn btn-primary") }}
{% endif %} {% for role in user.roles %} {% endfor %}
RoleOblastRočníkKategorieKoloPřidělilAkce
{{ roles_by_type[role.role].name }} {{ role.place.type_name() + ": " + role.place.name or '*' }} {{ role.year or '*' }} {{ role.category or '*' }} {{ role.seq or '*' }} {% if role.assigned_by_user %}{{ role.assigned_by_user|user_link }}{% else %}systém{% endif %}
{% if can_assign_rights %}
{{ form_remove_role.csrf_token() }}
{% endif %} {% if g.user.is_admin %} Historie {% endif %}
{% endif %} {% endblock %}