{% extends "webadmin/base.html" %} {% load i18n %} {% load markup %} {% load custom_tags %} {% block css %} {% endblock %} {% block title %} {% if eid %} {% trans "Edit scientist" %} {% else %} {% trans "Add scientist" %} {% endif %} {% endblock %} {% block jscript %} {% endblock %} {% block content %} {% if info.message %}
{{ info.message|safe|linebreaks }}
{% endif %}
{% if eid %}

{% trans "Edit scientist" %}

{% else %}

{% trans "Add scientist" %}

{% endif %}

{% trans "Fields marked with an * are mandatory." %}


{% if eid %}
{% else %} {% endif %} {% for field in form %} {% ifequal field.label_tag form.default_group.label_tag %}{% else %}{% ifequal field.label_tag form.other_groups.label_tag %}{% else %}{% ifequal field.label_tag form.available_groups.label_tag %}{% else %} {% endifequal %}{% endifequal %}{% endifequal %} {% endfor %} {% if ldapAuth %} {% else %} {% if eid %}{% endif %} {% endif %} {% if form.default_group.errors or form.available_groups.errors or form.other_groups.errors %}{% endif %}
{{ field.label_tag }}{% if field.field.required %}*{% endif %}{{ field }}{% if field.errors %}{{ field.errors }}{% endif %}{{ field.help_text|safe }}
LDAP: {{ ldapAuth }}
Password: change password

{% trans "A user may belong to one or more groups. To define the list of groups user is member of select them from the Available groups box and click button [<] to move them to the Selected groups area. Once groups are chosen select one to specify Default Group user will first log in to. Default Group is last group user successfully logged in to." %}

{% trans "Selected groups" %}*{% trans "Available groups" %}
{{ form.default_group.errors }}{{ form.other_groups.errors }}
{{ form.available_groups.errors }}
{{ form.default_group.label_tag }}{% if form.default_group.field.required %}*{% endif %}
{% if form.default_group %} {{ form.default_group }} {% else %}
    {% endif %}
    {{ form.other_groups }}
    {{ form.available_groups }}
     
    {% endblock %}