mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
tp: adapt variables for include _insert_vue_address
This commit is contained in:
parent
210d819125
commit
c440d8a2bd
@ -36,9 +36,7 @@
|
|||||||
{{ form_label(form.address) }}
|
{{ form_label(form.address) }}
|
||||||
{{ form_widget(form.address) }}
|
{{ form_widget(form.address) }}
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
new tp =>
|
|
||||||
{% if thirdParty.address %}
|
{% if thirdParty.address %}
|
||||||
edit address
|
|
||||||
{# 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 },
|
||||||
@ -46,10 +44,8 @@
|
|||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
addressId: thirdParty.address.id,
|
addressId: thirdParty.address.id,
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
openPanesInModal: false,
|
|
||||||
} %}
|
} %}
|
||||||
{% else %}
|
{% else %}
|
||||||
create address
|
|
||||||
{# 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 },
|
||||||
@ -58,7 +54,6 @@
|
|||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
buttonText: 'Create a new address',
|
buttonText: 'Create a new address',
|
||||||
modalTitle: 'Create a new address',
|
modalTitle: 'Create a new address',
|
||||||
openPanesInModal: false,
|
|
||||||
} %}
|
} %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,9 +53,7 @@
|
|||||||
{{ form_label(form.address) }}
|
{{ form_label(form.address) }}
|
||||||
{{ form_widget(form.address) }}
|
{{ form_widget(form.address) }}
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
update tp =>
|
|
||||||
{% if thirdParty.address %}
|
{% if thirdParty.address %}
|
||||||
edit address
|
|
||||||
{# 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 },
|
||||||
@ -63,17 +61,14 @@
|
|||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
addressId: thirdParty.address.id,
|
addressId: thirdParty.address.id,
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
openPanesInModal: false
|
|
||||||
} %}
|
} %}
|
||||||
{% else %}
|
{% else %}
|
||||||
create address
|
|
||||||
{# 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 }),
|
backUrl: path('chill_3party_3party_update', { thirdparty_id: thirdParty.id }),
|
||||||
mode: 'new',
|
mode: 'new',
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
openPanesInModal: false
|
|
||||||
} %}
|
} %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user