{% extends theme('base.html') %} {% import 'fomanticui.j2' as sui %} {% 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 %}

{#{ 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 %} {% if "groups" in form %} {{ sui.render_field(form.groups) }} {% endif %}

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

{% if "uid" in form %} {{ sui.render_field(form.uid) }} {% endif %}
{% if "password1" in form %} {{ sui.render_field(form.password1) }} {{ sui.render_field(form.password2) }} {% endif %}
{% if not edited_user %}
{% trans %}User password is not mandatory{% endtrans %}

{% trans %}The user password can be set:{% endtrans %}

  • {% trans %}by filling this form;{% endtrans %}
  • {% trans %}by sending the user a password initialization mail, after the account creation;{% endtrans %}
  • {% trans %}or simply waiting for the user to sign-in a first time, and then receive a password initialization mail.{% endtrans %}
{% elif user.moderator 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 %}You can solve this by:{% endtrans %}

  • {% trans %}setting a password using this form;{% endtrans %}
  • {% trans %}sending the user a password initialization mail, by clicking this button;{% endtrans %}
  • {% trans %}or simply waiting for the user to sign-in a first time, and then receive a password initialization mail.{% endtrans %}
{% elif user.moderator and edited_user.uid != user.uid and edited_user.has_password() %}
{% trans %}Password reset{% endtrans %}

{% trans %}If the user has forgotten his password, you can send him a password reset email by clicking this button.{% endtrans %}

{% endif %}
{% if user.moderator and edited_user or self_deletion %} {% endif %} {% if user.admin and edited_user and user.uid != edited_user.uid %} {{ _("Impersonate") }} {% endif %}
{% endblock %}