Skip to content

Commit

Permalink
[AdminUi] Apply last changes from Sylius templates
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Sep 26, 2024
1 parent faa8f92 commit c5024c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AdminUi/templates/crud/create.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
4 changes: 2 additions & 2 deletions src/AdminUi/templates/crud/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 } %}
Expand Down
2 changes: 1 addition & 1 deletion src/AdminUi/templates/crud/update.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit c5024c0

Please sign in to comment.