mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-02 19:39:45 +00:00
tp form: call vue_address to manage address, wip
show some limits with AddAddress: * bug with option buttonText overriding default * need to improve step1
This commit is contained in:
@@ -31,7 +31,36 @@
|
||||
|
||||
{{ form_row(form.telephone) }}
|
||||
{{ form_row(form.email) }}
|
||||
{{ form_row(form.address) }}
|
||||
|
||||
<div class="mb-3 row">
|
||||
{{ form_label(form.address) }}
|
||||
{{ form_widget(form.address) }}
|
||||
<div class="col-sm-8">
|
||||
new tp =>
|
||||
{% if thirdParty.address %}
|
||||
edit address
|
||||
{# include vue_address component #}
|
||||
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
|
||||
mode: 'edit',
|
||||
address_id: thirdParty.address.id,
|
||||
buttonSize: 'btn-sm',
|
||||
binModalStep1: false,
|
||||
backUrl: path('chill_3party_3party_new')
|
||||
} %}
|
||||
{% else %}
|
||||
create address
|
||||
{# include vue_address component #}
|
||||
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
|
||||
mode: 'create',
|
||||
buttonSize: 'btn-sm',
|
||||
buttonText: 'Create a new address',
|
||||
modalTitle: 'Create a new address',
|
||||
binModalStep1: false,
|
||||
backUrl: path('chill_3party_3party_new')
|
||||
} %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ form_row(form.comment) }}
|
||||
{{ form_row(form.centers) }}
|
||||
|
@@ -48,7 +48,32 @@
|
||||
|
||||
{{ form_row(form.telephone) }}
|
||||
{{ form_row(form.email) }}
|
||||
{{ form_row(form.address) }}
|
||||
|
||||
<div class="mb-3 row">
|
||||
{{ form_label(form.address) }}
|
||||
{{ form_widget(form.address) }}
|
||||
<div class="col-sm-8">
|
||||
update tp =>
|
||||
{% if thirdParty.address %}
|
||||
edit address
|
||||
{# include vue_address component #}
|
||||
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
|
||||
mode: 'edit',
|
||||
address_id: thirdParty.address.id,
|
||||
buttonSize: 'btn-sm',
|
||||
binModalStep1: false
|
||||
} %}
|
||||
{% else %}
|
||||
create address
|
||||
{# include vue_address component #}
|
||||
{% include '@ChillThirdParty/Address/_insert_vue_address.html.twig' with {
|
||||
mode: 'create',
|
||||
buttonSize: 'btn-sm',
|
||||
binModalStep1: false
|
||||
} %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ form_row(form.comment) }}
|
||||
{{ form_row(form.centers) }}
|
||||
|
Reference in New Issue
Block a user