{% extends 'partials/base.html.twig' %} {% if admin.route %} {% set user = admin.data('users/' ~ admin.route) %} {% set title = "PLUGIN_ADMIN.USER"|tu ~ ": " ~ admin.route|e %} {% else %} {% set title = "PLUGIN_ADMIN_PRO.USERS"|tu %} {% endif %} {% block titlebar %} {% if not admin.route %} {% if authorize(['admin.users', 'admin.super']) %}
{{ "PLUGIN_ADMIN.ADD_ACCOUNT"|tu }}

{{ "PLUGIN_ADMIN.USERS"|tu }}

{% else %}

{{ "PLUGIN_ADMIN.ACCESS_DENIED"|tu }}

{% endif %} {% else %} {% if authorize(['admin.users', 'admin.super']) or grav.user.username == user.username %}
{% if config.plugins["admin-pro"].enabled %} {{ "PLUGIN_ADMIN.BACK"|tu }} {% endif %}

{{ "PLUGIN_ADMIN.USER"|tu }}: {{ user.username|e }}

{% else %}

{{ "PLUGIN_ADMIN.ACCESS_DENIED"|tu }}

{% endif %} {% endif %} {% endblock %} {% block content %} {% if authorize(['admin.users', 'admin.super']) or grav.user.username == user.username %}
{% if not admin.route %} {% include 'partials/users-list.html.twig' %}
{% include 'partials/blueprints-new.html.twig' with { blueprints: admin.blueprints('user/account_new') } %}
{% else %} {% include 'partials/blueprints.html.twig' with { data: user, blueprints: user.blueprints } %} {% endif %}

{{ "PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_TITLE"|tu }}

{{ "PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_DESC"|tu }}


{% endif %} {% endblock %}