mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
batch replace hideAddress option by onlyButton
This commit is contained in:
parent
decc3c7463
commit
577d665f09
@ -271,7 +271,7 @@ export default {
|
|||||||
validFrom: false,
|
validFrom: false,
|
||||||
validTo: false
|
validTo: false
|
||||||
},
|
},
|
||||||
hideAddress: false
|
onlyButton: false
|
||||||
},
|
},
|
||||||
entity: {
|
entity: {
|
||||||
address: {}, // <== loaded and returned
|
address: {}, // <== loaded and returned
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div v-if="!hideAddress">
|
<div v-if="!onlyButton">
|
||||||
<div class="loading">
|
<div class="loading">
|
||||||
<i v-if="flag.loading" class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>
|
<i v-if="flag.loading" class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>
|
||||||
<span class="sr-only">{{ $t('loading') }}</span>
|
<span class="sr-only">{{ $t('loading') }}</span>
|
||||||
@ -86,9 +86,9 @@ export default {
|
|||||||
getSuccessText() {
|
getSuccessText() {
|
||||||
return (this.context.edit) ? 'address_edit_success' : 'address_new_success';
|
return (this.context.edit) ? 'address_edit_success' : 'address_new_success';
|
||||||
},
|
},
|
||||||
hideAddress() {
|
onlyButton() {
|
||||||
return (typeof this.options.hideAddress !== 'undefined') ?
|
return (typeof this.options.onlyButton !== 'undefined') ?
|
||||||
this.options.hideAddress : this.defaultz.hideAddress;
|
this.options.onlyButton : this.defaultz.onlyButton;
|
||||||
},
|
},
|
||||||
forceRedirect() {
|
forceRedirect() {
|
||||||
return (!(this.context.backUrl === null || typeof this.context.backUrl === 'undefined'));
|
return (!(this.context.backUrl === null || typeof this.context.backUrl === 'undefined'));
|
||||||
|
@ -53,7 +53,7 @@ containers.forEach((container) => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/// Don't display show renderbox Address: showPane display only a button
|
/// Don't display show renderbox Address: showPane display only a button
|
||||||
hideAddress: container.dataset.hideAddress === 'true' //boolean, default: false
|
onlyButton: container.dataset.onlyButton === 'true' //boolean, default: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* stickyActions bool (default: false)
|
* stickyActions bool (default: false)
|
||||||
* useValidFrom bool (default: false)
|
* useValidFrom bool (default: false)
|
||||||
* useValidTo bool (default: false)
|
* useValidTo bool (default: false)
|
||||||
* hideAddress bool (default: false)
|
* onlyButton bool (default: false)
|
||||||
#}
|
#}
|
||||||
<div class="address-container"
|
<div class="address-container"
|
||||||
|
|
||||||
@ -69,7 +69,7 @@
|
|||||||
data-use-valid-to="true"
|
data-use-valid-to="true"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if hideAddress is defined and hideAddress == 1 %}
|
{% if onlyButton is defined and onlyButton == 1 %}
|
||||||
data-hide-address="true"
|
data-hide-address="true"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
></div>
|
></div>
|
||||||
|
@ -102,7 +102,7 @@ export default {
|
|||||||
create: 'courselocation.add_temporary_address',
|
create: 'courselocation.add_temporary_address',
|
||||||
edit: 'courselocation.edit_temporary_address'
|
edit: 'courselocation.edit_temporary_address'
|
||||||
},
|
},
|
||||||
hideAddress: true
|
onlyButton: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ export default {
|
|||||||
validFrom: false,
|
validFrom: false,
|
||||||
validTo: false,
|
validTo: false,
|
||||||
},
|
},
|
||||||
hideAddress: true,
|
onlyButton: true,
|
||||||
button: {
|
button: {
|
||||||
text: {
|
text: {
|
||||||
create: 'household_members_editor.household.set_address',
|
create: 'household_members_editor.household.set_address',
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
||||||
targetEntity: { name: 'household', id: household.id },
|
targetEntity: { name: 'household', id: household.id },
|
||||||
backUrl: path('chill_person_household_summary', { 'household_id': household.id }),
|
backUrl: path('chill_person_household_summary', { 'household_id': household.id }),
|
||||||
hideAddress: true,
|
onlyButton: true,
|
||||||
mode: 'new',
|
mode: 'new',
|
||||||
buttonSize: 'btn-sm',
|
buttonSize: 'btn-sm',
|
||||||
buttonText: 'Move household',
|
buttonText: 'Move household',
|
||||||
|
@ -73,7 +73,7 @@ export default {
|
|||||||
addAddress: {
|
addAddress: {
|
||||||
options: {
|
options: {
|
||||||
openPanesInModal: true,
|
openPanesInModal: true,
|
||||||
hideAddress: false,
|
onlyButton: false,
|
||||||
/*
|
/*
|
||||||
button: {
|
button: {
|
||||||
text: {
|
text: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user