{% extends "admin/core/flat_base.html" %} {% load static %} {% load foundation %} {% block contextual_title %} {% if active == 'add' %} Add new user {% else %} Edit user "{{ user_to_edit.full_name }}" {% endif %} {% endblock contextual_title %} {% block css %} {% endblock %} {% block breadcrumbs %} {{ block.super }}
  • Manager
  • Users
  • {% if active == 'add' %} Add new user {% else %} Edit user "{{ user_to_edit.full_name }}" {% endif %}
  • {% endblock %} {% block title-section %} {% if active == 'add' %} Add new user {% else %} Edit user "{{ user_to_edit.full_name }}" {% endif %} {% endblock %} {% block body %}
    {% csrf_token %}

    {% trans "Email and account access" %}

    {% include "admin/elements/forms/messages_in_callout.html" with form=registration_form %}
    {% include "elements/forms/field.html" with field=registration_form.email %} {% include "elements/forms/field.html" with field=registration_form.is_active %} {% include "elements/forms/field.html" with field=registration_form.is_staff %} {% include "elements/forms/field.html" with field=registration_form.is_admin %} {% include "elements/forms/field.html" with field=registration_form.is_superuser %} {% if active == 'add' %} {% include "elements/forms/field.html" with field=registration_form.password_1 %} {% include "elements/forms/field.html" with field=registration_form.password_2 %} {% endif %}

    {% trans "Profile details" %}

    {% include "admin/elements/forms/messages_in_callout.html" with form=form %} {% include "admin/elements/accounts/user_form.html" with form=form %}
    {% include "elements/button_save.html" %} {% include "elements/a_cancel.html" with href=request.GET.next %}
    {% endblock %} {% block js %} {% endblock %}