diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue index 248e7da2b..69f764284 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue @@ -9,8 +9,8 @@ - modalDialogClass="modal-dialog-scrollable modal-xl" @close="flag.showPane = false"> @@ -62,7 +62,7 @@ - + @@ -147,10 +147,7 @@ export default { displayText: true }, title: { create: 'add_an_address_title', edit: 'edit_address' }, - bindModal: { - step1: true, - step2: true, - }, + openPanesInModal: true, useDate: { validFrom: false, validTo: false @@ -192,19 +189,9 @@ export default { } }, computed: { - step1WithModal() { - return (typeof this.options.bindModal !== 'undefined' && typeof this.options.bindModal.step1 !== 'undefined') ? - this.options.bindModal.step1 : this.default.bindModal.step1; - }, - step2WithModal() { - let step2 = (typeof this.options.bindModal !== 'undefined' && typeof this.options.bindModal.step2 !== 'undefined') ? - this.options.bindModal.step2 : this.default.bindModal.step2; - - if (step2 === false && this.step1WithModal === true) { - console.log("step2 must open in a Modal"); - return true; - } - return step2; + InModal() { + return (typeof this.options.openPanesInModal !== 'undefined') ? + this.options.openPanesInModal : this.default.openPanesInModal; }, getTextTitle() { if ( typeof this.options.title !== 'undefined' diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/index.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/index.js index cb628586a..4e49b2207 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/index.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/index.js @@ -38,12 +38,9 @@ containers.forEach((container) => { create: container.dataset.modalTitle || null, edit: container.dataset.modalTitle || null }, - /// Display each step in page or Modal - bindModal: { - step1: container.dataset.bindModalStep1 !== 'false', //boolean, default: true - step2: container.dataset.bindModalStep2 !== 'false' //boolean, default: true - }, // Use Date fields + /// Display panes in Modal for step123 + openPanesInModal: container.dataset.openPanesInModal !== 'false', //boolean, default: true useDate: { validFrom: container.dataset.useValidFrom === 'true', //boolean, default: false validTo: container.dataset.useValidTo === 'true' //boolean, default: false diff --git a/src/Bundle/ChillMainBundle/Resources/views/Address/_insert_vue_address.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Address/_insert_vue_address.html.twig index fa08286f8..052cdbec9 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Address/_insert_vue_address.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Address/_insert_vue_address.html.twig @@ -14,9 +14,8 @@ * buttonText twig translated chain * buttonSize bootstrap class like 'btn-sm' * buttonDisplayText bool - * bindModalStep1 bool - * bindModalStep2 bool + * openPanesInModal bool (default: true) #}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Household/address_move.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Household/address_move.html.twig index 6d65c0a7f..2b7dfa8f0 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Household/address_move.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Household/address_move.html.twig @@ -10,8 +10,7 @@ {% include '@ChillMain/Address/_insert_vue_address.html.twig' with { targetEntity: { name: 'household', id: household.id }, backUrl: path('chill_person_household_addresses', { 'household_id': household.id }), - bindModalStep1: false, - bindModalStep2: false, + openPanesInModal: false, } %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig index e8b0c7b78..d8c53dbf5 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig @@ -40,8 +40,7 @@ buttonDisplayText: false, } %} {# - bindModalStep1: false, - bindModalStep2: true, + openPanesInModal: false #}