{% extends '@SyliusAdmin/layout.html.twig' %}
{% set definition = resources.definition %}
{% set data = resources.data %}
{% set event_prefix = metadata.applicationName ~ '.admin.' ~ metadata.name ~ '.index' %}
{% set header = configuration.vars.header|default(metadata.applicationName~'.ui.'~metadata.pluralName) %}
{% block title %}{{ header|trans }} {{ parent() }}{% endblock %}
{% block content %}
{{ sylius_template_event([event_prefix, 'sylius.admin.index'], _context) }}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ sylius_template_event([event_prefix ~ '.stylesheets', 'sylius.admin.index.stylesheets'], { 'metadata': metadata }) }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ sylius_template_event([event_prefix ~ '.javascripts', 'sylius.admin.index.javascripts'], { 'metadata': metadata }) }}
{% endblock %}