{% extends 'Shop/base.html.twig' %} {% block title %} {{ 'app.global.user.show.title'|trans({ '%instance%': ('app.global.user.instance.' ~ instance)|trans }) }} {% endblock %} {% block toolbar_actions %} {% set canModifyShopManager = userTypeShopManager != instance or (not isSwitchedByDeveloper and not isDeveloper) %}
{% if userTypeShopManager == instance and user.device is not null %} {% endif %} {% if canModifyShopManager %} {% include 'Includes/delete.html.twig' with { 'route': path('foxorders_security_user_delete', {'id': user.id}), 'token': csrf_token('delete' ~ user.id) } %} {% endif %} {% if true == canSubscribeToQoodos %} {% if true == isQoodosClient %} {{ 'app.global.buttons.unsubscription'|trans }} {% else %} {{ 'app.global.buttons.subscription'|trans }} {% endif %} {% endif %} {% if canModifyShopManager %} {{ 'app.global.buttons.update'|trans }} {{ 'app.global.buttons.update_password'|trans }} {% endif %} {% if 'customer' == instance and false == user.verified %} {{ 'app.global.user.buttons.verify_email'|trans }} {% endif %}
{% endblock %} {% block body %}
{% include 'Menu/User/menu.html.twig' %}
{% if 'customer' == instance %} {% endif %}
{% if 'customer' == instance %}
{% include 'Security/User/Components/history.html.twig' %}
{% endif %}
{% include 'Security/User/Components/details.html.twig' %}
{% if 'customer' == instance %}
{% include 'Security/User/Components/delivery_addresses.html.twig' %}
{% endif %} {% if 'customer' == instance and true == isQoodosClient %}
{% include 'Security/User/Components/qoodos.html.twig' %}
{% endif %}
{% endblock %} {% block modals %} {% include 'Modal/form.html.twig' with { 'title': 'app.global.buttons.edit'|trans, 'id': 'user', } %} {% endblock %} {% block javascripts %} {% set thirdPartiesRoles = [userTypeManager, userTypeShopManager] %} {{ parent() }} {% endblock %}