{% extends '@EasyAdmin/default/list.html.twig' %} {# {% block header_container %} {{parent()}} hola mundo {% endblock %} #} {% 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 buttons_top_table %} {% if ((is_granted('ROLE_PROVIDER') or is_granted('ROLE_SELLER') )) or app.session.get('providerView') %} {% set userProvider = '' %}
{% if app.user.roles[0] == 'ROLE_PROVIDER' %} {% set userProvider = app.user %} {% elseif app.user.roles[0] == 'ROLE_SELLER' %} {% set userProvider = app.user.provider %} {% endif %} {% if userProvider == '' %} {% elseif userProvider.providerRabbits|length == 0 or app.user.typeSector == 2 %} {% endif %}
{% endif %} {% endblock buttons_top_table %} {% block more_actions %} {% endblock more_actions %} {% block item_actions %} {% set _actions_template = 'admin/client/actions.html.twig'%} {{ include(_actions_template, { actions: _list_item_actions, entity_config: _entity_config, request_parameters: _request_parameters, translation_domain: _entity_config.translation_domain, trans_parameters: _trans_parameters, item_id: _item_id, item: item }, with_context = false) }} {% endblock item_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 %} {{ 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 table_head %} {# if came from provider shoe create element #} {# {% if not app.session.get('providerView') %} #} {{ parent() }} {# {% endif %} #} {% endblock table_head %} {% block content %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {{parent()}} {% include "/admin/order_returns/create/createOrder_css.html.twig" %} {% endblock %} {% block body_javascript %} {% include "/admin/client/stock_client_js.html.twig" %} {{parent()}} {% include "security/country_json.html.twig" %} {% endblock %}