{% extends theme("management/management_layout.html") %} {% set page_title = title %} {% set active = "management.add_user" if user is not defined else "management.users" %} {% block breadcrumb %}
{% endblock %} {% block management_content %} {%- from theme('_macros/pagination.html') import render_pagination -%} {%- from theme('_macros/form.html') import horizontal_field -%} {%- from theme('_macros/utils.html') import avatar_img -%} {#- `user` is undefined on the Add User page, hence the `is defined` guard. Only fields that can cost you your own access need confirming, so this is false for a super moderator or moderator editing themselves - they have neither field. -#} {% set editing_self = user is defined and current_user.id == user.id %} {% set confirm_self_change = editing_self and (form.primary_group is not none or form.activated is not none) %}