{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}
{% extends '@PrestaShop/Admin/layout.html.twig' %}
{% set layoutHeaderToolbarBtn = {
  add: {
    href: path('admin_order_states_create'),
    desc: 'Add new order status'|trans({}, 'Admin.Shopparameters.Feature'),
    icon: 'add_circle_outline',
  },
  add_return_state: {
    href: path('admin_order_return_states_create'),
    desc: 'Add new return status'|trans({}, 'Admin.Shopparameters.Feature'),
    icon: 'add_circle_outline',
  },
} %}

{% block content %}
  {{ include('@PrestaShop/Admin/Common/multistore-infotip.html.twig') }}

  {% block order_states_listing %}
    {% embed '@PrestaShop/Admin/Common/Grid/grid_panel.html.twig' with {grid: orderStatesGrid} %}{% endembed %}
  {% endblock %}

  {% block order_return_states_listing %}
    {% embed '@PrestaShop/Admin/Common/Grid/grid_panel.html.twig' with {grid: orderReturnStatesGrid} %}{% endembed %}
  {% endblock %}

{% endblock %}

{% block javascripts %}
  {{ parent() }}

  <script src="{{ asset('themes/default/js/bundle/pagination.js') }}"></script>
  <script src="{{ asset('themes/new-theme/public/order_states.bundle.js') }}"></script>
{% endblock %}
