Skip to content
Snippets Groups Projects

UI na uživatelské preference

Merged Martin Mareš requested to merge mj/settings into devel
All threads resolved!
2 files
+ 39
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 14
0
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}Uživatel {{ user.full_name() }}{% endblock %}
{% block body %}
@@ -20,6 +21,19 @@
<p>Pokud potřebujete změnit jiné údaje, ozvěte se svému učiteli nebo garantovi.
Neuspějete-li u nich, napište správci OSMO (kontakt viz patička stránky).
<h3>Nastavení</h3>
<form action="" method="post" class="form" role="form">
{{ form.csrf_token }}
<div class='form-group'>
{{ wtf.form_field(form.email_notify, form_type='simple') }}
</div>
{{ wtf.form_field(form.submit, form_type='simple', button_map={'submit': 'primary'}) }}
</form>
{% if user.is_admin or user.is_org %}
<h3>Práva</h3>
Loading