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

{{ "PLUGIN_ADMIN.USERS"|t }}

{% else %}

{{ "PLUGIN_ADMIN.ACCESS_DENIED"|t }}

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

{{ "PLUGIN_ADMIN.USER"|t }}: {{ user.username }}

{% else %}

{{ "PLUGIN_ADMIN.ACCESS_DENIED"|t }}

{% 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"|t }}

{{ "PLUGIN_ADMIN.MODAL_CHANGED_DETECTED_DESC"|t }}


{% endif %} {% endblock %}