{% extends "webadmin/base.html" %} {% load i18n %} {% load common_filters %} {% comment %} {% endcomment %} {% block link %} {{ block.super }} {% endblock %} {% block title %} {% if eid %} {% trans "Edit user" %} {% else %} {% trans "New User" %} {% endif %} {% endblock %} {% block script %} {{ block.super }} {% endblock %} {% block center_details %} {{ block.super }}
{% if eid %}

{% trans "Edit User" %}

{% else %}

{% trans "New User" %}

{% endif %}

Cancel

{% if eid %}
{% csrf_token %} {% if ldapAuth %} {{ ldapAuth }} {% else %} Change User's Password {% endif %}

{% else %} {% csrf_token %} {% endif %}

{% trans "Fields marked in red are mandatory." %}

{% for field in form %} {% if field.errors %}
{{ field.errors }}
{% endif %} {% ifequal field.label_tag form.default_group.label_tag %} {{ field.label_tag }} {{ field }}
{% else %} {% ifequal field.label_tag form.other_groups.label_tag %} {{ field.label_tag }} {{ field }} {% else %} {% if field.field.required %} {{ field.label_tag }} {% else %} {{ field.label_tag }} {% endif %} {{ field }} {% endifequal %} {% endifequal %}
{% endfor %}
{% if eid %}
{% csrf_token %}
{{ password_form.old_password }}
{{ password_form.password.label_tag }}{% if password_form.password.required %}*{% endif %} {{ password_form.password }}
{{ password_form.confirmation.label_tag }}{% if password_form.confirmation.required %}*{% endif %} {{ password_form.confirmation }}
{% endif %}
{% endblock %} {% block metadata_details %}
{% endblock %}