diff --git a/src/AdminUi/templates/crud/create.html.twig b/src/AdminUi/templates/crud/create.html.twig index 6f035715..2290bc6d 100644 --- a/src/AdminUi/templates/crud/create.html.twig +++ b/src/AdminUi/templates/crud/create.html.twig @@ -5,7 +5,7 @@ 'sylius_admin.common' ] %} -{% set header = configuration.vars.header|default(metadata.applicationName~'.ui.'~metadata.pluralName) %} +{% set header = metadata.applicationName ~ '.ui.' ~ metadata.pluralName %} {% block title %}{{ header|trans }} | {{ parent() }}{% endblock %} diff --git a/src/AdminUi/templates/crud/index.html.twig b/src/AdminUi/templates/crud/index.html.twig index 9e18ef0c..f3a5876e 100644 --- a/src/AdminUi/templates/crud/index.html.twig +++ b/src/AdminUi/templates/crud/index.html.twig @@ -5,9 +5,9 @@ 'sylius_admin.common' ] %} -{% set header = configuration.vars.header|default(metadata.applicationName~'.ui.'~metadata.pluralName) %} +{% set header = custom_header|default(metadata.applicationName ~ '.ui.' ~ metadata.pluralName) %} -{% block title %}{{ header|trans }} {{ parent() }}{% endblock %} +{% block title %}{{ header|trans }} | {{ parent() }}{% endblock %} {% block body %} {% hook 'index' with { _prefixes: prefixes, metadata, resources } %} diff --git a/src/AdminUi/templates/crud/update.html.twig b/src/AdminUi/templates/crud/update.html.twig index 38d64978..332ebe1c 100644 --- a/src/AdminUi/templates/crud/update.html.twig +++ b/src/AdminUi/templates/crud/update.html.twig @@ -5,7 +5,7 @@ 'sylius_admin.common' ] %} -{% set header = configuration.vars.header|default(metadata.applicationName~'.ui.'~metadata.pluralName) %} +{% set header = metadata.applicationName ~ '.ui.' ~ metadata.pluralName %} {% block title %}{{ header|trans }} | {{ parent() }}{% endblock %}