mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Fix app.request in templates
This commit is contained in:
parent
79303a8eaa
commit
8cae31e5d2
3 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<button class="btn primary"
|
<button class="btn primary"
|
||||||
{{ stimulus_controller('@sylius/admin-bundle/save-positions', {
|
{{ stimulus_controller('@sylius/admin-bundle/save-positions', {
|
||||||
url: path('sylius_admin_ajax_product_taxons_update_position', {taxonId: app.request.get('taxonId')}),
|
url: path('sylius_admin_ajax_product_taxons_update_position', {taxonId: app.request.attributes.get('taxonId')}),
|
||||||
csrfToken: sylius_csrf_protection_enabled() ? csrf_token('update-product-taxon-position') : null,
|
csrfToken: sylius_csrf_protection_enabled() ? csrf_token('update-product-taxon-position') : null,
|
||||||
inputSelector: '.sylius-product-taxon-position',
|
inputSelector: '.sylius-product-taxon-position',
|
||||||
dataKey: 'productTaxons',
|
dataKey: 'productTaxons',
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<a class="btn btn-primary" href="{{ path('sylius_shop_product_review_create', {'slug': app.request.get('slug')}) }}">
|
<a class="btn btn-primary" href="{{ path('sylius_shop_product_review_create', {'slug': app.request.attributes.get('slug')}) }}">
|
||||||
{{ 'sylius.ui.add_your_review'|trans }}
|
{{ 'sylius.ui.add_your_review'|trans }}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
{% hook 'head' with { _prefixes: prefixes } %}
|
{% hook 'head' with { _prefixes: prefixes } %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-route="{{ app.request.get('_route') }}">
|
<body data-route="{{ app.request.attributes.get('_route') }}">
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="{% apply escape %}{% hook '#body_classes' with { _prefixes: prefixes } %}{% endapply %}">
|
<div class="{% apply escape %}{% hook '#body_classes' with { _prefixes: prefixes } %}{% endapply %}">
|
||||||
{% block header %}
|
{% block header %}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue