Skip to content
Snippets Groups Projects
Select Git revision
  • 54c9fda14550f65407699f71cca3eea6e9427e45
  • 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

db.ddl

Blame
  • org_user_edit.html 1.06 KiB
    {% extends "base.html" %}
    {% import "bootstrap/wtf.html" as wtf %}
    {% block title %}{% if user.is_org %}Organizátor:{% elif user.is_admin %}Správce:{% else %}Soutěžící{% endif %} {{ user.full_name() }}{% endblock %}
    {% block body %}
    
    <table class=data>
    <tr><td>Jméno:</td><td>{{ user.first_name }}</td></tr>
    <tr><td>Příjmení:</td><td>{{ user.last_name }}</td></tr>
    <tr><td>E-mail:</td><td>{{ user.email|mailto }}</td></tr>
    {% if user.is_admin %}<tr><td>Správce:</td><td>ano</td></tr>{% endif %}
    {% if user.is_org %}<tr><td>Organizátor:</td><td>ano</td></tr>{% endif %}
    <tr><td>Poznámka:</td><td style="white-space: pre;">{{ user.note }}</td></tr>
    </table>
    
    <a href='{% if is_org %}{{ url_for('org_org', id=user.user_id) }}{% else %}{{ url_for('org_user', id=user.user_id) }}{% endif %}'>Zpět na detail</a>
    
    <hr>
    
    <h3>Editace údajů</h3>
    
    {% if not form.email %}<p>E-mail u organizátora nelze editovat. Pro jeho změnu kontaktujte někoho ze správců.</p>{% endif %}
    
    {{ wtf.quick_form(form, form_type='horizontal', button_map={'submit': 'primary'}) }}
    
    {% endblock %}