{% extends 'base.html' %} {% import 'fomanticui.j2' as sui %} {% import 'flask.j2' as flask %} {% block script %} {% endblock %} {% block content %} {% if self_deletion or (user.moderator and edited_user) %} {% endif %}

{% if not edited_user %} {% trans %}User creation{% endtrans %} {% elif user.uid == edited_user.uid %} {% trans %}My profile{% endtrans %} {% else %} {% trans %}User profile edition{% endtrans %} {% endif %}
{% if not edited_user %} {% trans %}Create a new user account{% endtrans %} {% elif user.uid == edited_user.uid %} {% trans %}Edit your personal informations{% endtrans %} {% else %} {% trans %}Edit informations about an user{% endtrans %} {% endif %}

{{ flask.messages() }}
{#{ sui.render_field(form.csrf_token) }#}

{% trans %}Personal information{% endtrans %}

{% if "givenName" in form %} {{ sui.render_field(form.givenName) }} {% endif %} {% if "sn" in form %} {{ sui.render_field(form.sn) }} {% endif %}
{% if "mail" in form %} {{ sui.render_field(form.mail) }} {% endif %} {% if "telephoneNumber" in form %} {{ sui.render_field(form.telephoneNumber) }} {% endif %} {% if "employeeNumber" in form %} {{ sui.render_field(form.employeeNumber) }} {% endif %}

{% trans %}Account information{% endtrans %}

{% if "uid" in form %} {{ sui.render_field(form.uid) }} {% endif %} {% if user.moderator and edited_user and not edited_user.has_password() %}
{% if request.method == "POST" and request.form.action == "password-initialization-mail" %} {% else %} {% endif %}
{% trans %}This user does not have a password yet{% endtrans %}
  • {% trans %}Set a password using this form;{% endtrans %}
  • {% trans %}send the user a password initialization mail, by clicking this button;{% endtrans %}
  • {% trans %}or simply wait for the user to sign-in a first time, and then receive a password initialization mail.{% endtrans %}
{% endif %}
{% if "password1" in form %} {{ sui.render_field(form.password1) }} {{ sui.render_field(form.password2) }} {% endif %}
{% if user.admin and edited_user and user.uid != edited_user.uid %} {{ _("Impersonate") }} {% endif %} {% if user.moderator and edited_user or self_deletion %} {% endif %}
{% endblock %}