mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
AddAddress: adding a new stickyActions option
This commit is contained in:
parent
f048395a89
commit
331dd286e7
@ -24,6 +24,7 @@ export default {
|
|||||||
props: [ 'options', 'default' ],
|
props: [ 'options', 'default' ],
|
||||||
computed: {
|
computed: {
|
||||||
isStickyForm() {
|
isStickyForm() {
|
||||||
|
return (typeof this.options.stickyActions !== 'undefined') ? this.options.stickyActions : this.default.stickyActions;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,9 +38,11 @@ containers.forEach((container) => {
|
|||||||
create: container.dataset.modalTitle || null,
|
create: container.dataset.modalTitle || null,
|
||||||
edit: container.dataset.modalTitle || null
|
edit: container.dataset.modalTitle || null
|
||||||
},
|
},
|
||||||
// Use Date fields
|
|
||||||
/// Display panes in Modal for step123
|
/// Display panes in Modal for step123
|
||||||
openPanesInModal: container.dataset.openPanesInModal !== 'false', //boolean, default: true
|
openPanesInModal: container.dataset.openPanesInModal !== 'false', //boolean, default: true
|
||||||
|
/// Display actions buttons of panes in a sticky-form-button navbar
|
||||||
|
stickyActions: container.dataset.stickyActions === 'true', //boolean, default: false
|
||||||
|
/// Use Date fields
|
||||||
useDate: {
|
useDate: {
|
||||||
validFrom: container.dataset.useValidFrom === 'true', //boolean, default: false
|
validFrom: container.dataset.useValidFrom === 'true', //boolean, default: false
|
||||||
validTo: container.dataset.useValidTo === 'true' //boolean, default: false
|
validTo: container.dataset.useValidTo === 'true' //boolean, default: false
|
||||||
|
@ -13,9 +13,11 @@
|
|||||||
* modalTitle twig translated chain
|
* modalTitle twig translated chain
|
||||||
* buttonText twig translated chain
|
* buttonText twig translated chain
|
||||||
* buttonSize bootstrap class like 'btn-sm'
|
* buttonSize bootstrap class like 'btn-sm'
|
||||||
* buttonDisplayText bool
|
* buttonDisplayText bool (default: true)
|
||||||
|
|
||||||
* openPanesInModal bool (default: true)
|
* openPanesInModal bool (default: true)
|
||||||
|
* stickyActions bool (default: false)
|
||||||
|
* useValidFrom bool (default: false)
|
||||||
|
* useValidTo bool (default: false)
|
||||||
#}
|
#}
|
||||||
<div class="address-container"
|
<div class="address-container"
|
||||||
|
|
||||||
@ -54,6 +56,9 @@
|
|||||||
data-open-panes-in-modal="false"
|
data-open-panes-in-modal="false"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if stickyActions is defined and stickyActions == 1 %}
|
||||||
|
data-sticky-actions="true"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if useValidFrom is defined and useValidFrom == 1 %}
|
{% if useValidFrom is defined and useValidFrom == 1 %}
|
||||||
data-use-valid-from="true"
|
data-use-valid-from="true"
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
targetEntity: { name: 'person', id: person.id },
|
targetEntity: { name: 'person', id: person.id },
|
||||||
backUrl: path('chill_person_address_list', { 'person_id': person.id }),
|
backUrl: path('chill_person_address_list', { 'person_id': person.id }),
|
||||||
openPanesInModal: false,
|
openPanesInModal: false,
|
||||||
|
stickyActions: true,
|
||||||
useValidFrom: true,
|
useValidFrom: true,
|
||||||
useValidTo: false
|
useValidTo: false
|
||||||
} %}
|
} %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user