Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AdminUi] Apply last changes from Sylius templates #65

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should stack have different prefixes, like sylius_admin_ui?

] %}

{% 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
Loading