mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
tp: Address, twig options: check to remove forceRedirect, and disable backUrl
This commit is contained in:
parent
f5348daddf
commit
019a66c915
@ -40,16 +40,17 @@
|
|||||||
{# include vue_address component #}
|
{# include vue_address component #}
|
||||||
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
||||||
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
||||||
backUrl: path('chill_3party_3party_new'),
|
|
||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
addressId: thirdParty.address.id,
|
addressId: thirdParty.address.id,
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
} %}
|
} %}
|
||||||
|
{#
|
||||||
|
backUrl: path('chill_3party_3party_new'),
|
||||||
|
#}
|
||||||
{% else %}
|
{% else %}
|
||||||
{# include vue_address component #}
|
{# include vue_address component #}
|
||||||
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
||||||
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
||||||
backUrl: path('chill_3party_3party_new'),
|
|
||||||
mode: 'new',
|
mode: 'new',
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
buttonText: 'Create a new address',
|
buttonText: 'Create a new address',
|
||||||
|
@ -57,16 +57,17 @@
|
|||||||
{# include vue_address component #}
|
{# include vue_address component #}
|
||||||
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
||||||
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
||||||
backUrl: path('chill_3party_3party_update', { thirdparty_id: thirdParty.id }),
|
|
||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
addressId: thirdParty.address.id,
|
addressId: thirdParty.address.id,
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
} %}
|
} %}
|
||||||
|
{#
|
||||||
|
backUrl: path('chill_3party_3party_update', { thirdparty_id: thirdParty.id }),
|
||||||
|
#}
|
||||||
{% else %}
|
{% else %}
|
||||||
{# include vue_address component #}
|
{# include vue_address component #}
|
||||||
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
||||||
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
targetEntity: { name: 'thirdparty', id: thirdParty.id },
|
||||||
backUrl: path('chill_3party_3party_update', { thirdparty_id: thirdParty.id }),
|
|
||||||
mode: 'new',
|
mode: 'new',
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
buttonText: 'Create a new address',
|
buttonText: 'Create a new address',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user