{% extends "layout2.html" %} {% load i18n %} {% load static %} {% block css_include %} {% endblock %} {% block js_include %} {% endblock %} {% block content %}
{% csrf_token %}

 {% translate "LDAP Users edition" %}

{# Print form errors correctly #} {% if form.non_field_errors %}

{% translate "Form errors" %}

{{ form.non_field_errors|safe }}
{% endif %}
{{ user_form.username }} {% if user_form.username.help_text %} {{ user_form.username.help_text }}
{% endif %} {% if user_form.username.errors %} {{ user_form.username.errors }} {% endif %}
{{ user_form.groups }} {% if user_form.groups.help_text %} {{ user_form.groups.help_text }}
{% endif %} {% if user_form.groups.errors %} {{ user_form.groups.errors }} {% endif %}

{{ user_form.is_superuser }} {% if user_form.is_superuser.help_text %} {{ user_form.is_superuser.help_text }}
{% endif %} {% if user_form.is_superuser.errors %} {{ user_form.is_superuser.errors }} {% endif %}

{{ user_form.is_active }} {% if user_form.is_active.help_text %} {{ user_form.is_active.help_text }}
{% endif %} {% if user_form.is_active.errors %} {{ user_form.is_active.errors }} {% endif %}
{% endblock %} {% block jquery_code %} $(function(){ $('.select2').select2(); var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch')); elems.forEach(function(html) { var switchery = new Switchery(html, { 'color': '#FA9834' }); }); }) {% endblock %}