{% extends '@EasyAdmin/default/list.html.twig' %} {% block title_entity %} {% if app.session.get('providerView') %} {% set provider = app.session.get('providerView') %}
{% if provider.image is defined %} {% if not provider.image is null %} {% else %} {% endif %} {% else %} {% endif %}
{% if provider.companyName is defined %} {{provider.companyName}} {% else %} {{provider.username}} {% endif %}
{% if provider.email is defined %} {{provider.email}} {% endif %}
{% else %} {{ parent() }} {% endif %} {% endblock %} {% block batch_actions %} {% endblock batch_actions %} {% block buttons_top_table %}
{% if is_granted('ROLE_CARRIER') or is_granted('ROLE_OPERATION') or is_granted('ROLE_SELLER') %} {{ include('admin/orders/changeStateBatch.html.twig') }} {% endif %} {% if not is_granted('ROLE_SUPERADMIN') and (is_granted('ROLE_OPERATION') or is_granted('ROLE_SELLER')) %} {{ include('admin/orders/group/groupOrderBatch.html.twig') }} {% endif %} {% if not is_granted('ROLE_SUPERADMIN') and is_granted('ROLE_CLIENT_USER') %} {% endif %}
{{ include('admin/orders/modal_order_recived.html.twig') }} {% endblock buttons_top_table %} {% block more_actions %} {% if app.user.typeSector == 1 %} {% if app.user.roles[0] == 'ROLE_PROVIDER' or app.user.roles[0] == 'ROLE_SELLER' %} {% set providerRabbits = app.user.roles[0] == 'ROLE_PROVIDER' ? app.user.providerRabbits : app.user.provider.providerRabbits %} {% if providerRabbits|length > 0 %} {% set activeSage = '' %} {% for label, rabbit in providerRabbits %} {% set activeSage = rabbit.integration %} {% endfor %} {% endif %} {% endif %} {% endif %} {% endblock more_actions %} {% block actions_tabs %} {% if app.session.get('providerView') and is_granted('ROLE_ADMIN') %} {% set provider = app.session.get('providerView') %} {# aca irian las acciones de borrar y modificar provider {%- if action.label is defined and not action.label is empty -%} {{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }} {% endif %} {{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }} #} {{ 'Information'| trans }} {{ 'Clients'| trans }} {{ 'Orders'| trans }} {{ 'Products'|trans }} {% if is_granted('ROLE_ADMIN') %} {{ 'Delete'|trans }} {{ 'Modify'|trans }} {# seteo a mano los iconos #} {% set title_all = "list.button.provider"|trans(_trans_parameters) %} {% set icon_all = 'icon_proveedores' %} {%- if icon_all is defined %} {% endif -%} {{title_all}} {% endif %} {% else %} {% if not is_granted('ROLE_CLIENT') and ( is_granted('ROLE_OPERATION') or is_granted('ROLE_SELLER')) %} {% endif %} {{ parent() }} {% endif %} {% endblock actions_tabs %} {% block new_action %} {# if came from provider shoe create element #} {% if not app.session.get('providerView') %} {{ parent() }} {% endif %} {% endblock new_action %} {% block body_javascript %} {{ parent() }} {% endblock body_javascript %}