mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
rdv: add current event date when edit
This commit is contained in:
parent
9907b59379
commit
981c819f56
@ -22,6 +22,15 @@ export default {
|
|||||||
calendarOptions: {
|
calendarOptions: {
|
||||||
plugins: [ dayGridPlugin, interactionPlugin, timeGridPlugin ],
|
plugins: [ dayGridPlugin, interactionPlugin, timeGridPlugin ],
|
||||||
initialView: 'dayGridMonth',
|
initialView: 'dayGridMonth',
|
||||||
|
initialEvents: window.startDate !== undefined ?
|
||||||
|
[
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
start: window.startDate.date,
|
||||||
|
end: window.endDate.date
|
||||||
|
}
|
||||||
|
] : [],
|
||||||
|
initialDate: window.startDate !== undefined ? window.startDate.date : new Date(),
|
||||||
selectable: true,
|
selectable: true,
|
||||||
select: this.onDateSelect,
|
select: this.onDateSelect,
|
||||||
selectMirror: true,
|
selectMirror: true,
|
||||||
|
@ -51,8 +51,6 @@
|
|||||||
|
|
||||||
..calendarRange
|
..calendarRange
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="record_actions sticky-form-buttons">
|
<ul class="record_actions sticky-form-buttons">
|
||||||
<li class="cancel">
|
<li class="cancel">
|
||||||
<a
|
<a
|
||||||
|
@ -24,7 +24,9 @@
|
|||||||
chill.displayAlertWhenLeavingModifiedForm('form[name="{{ form.vars.form.vars.name }}"]',
|
chill.displayAlertWhenLeavingModifiedForm('form[name="{{ form.vars.form.vars.name }}"]',
|
||||||
'{{ "You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans }}');
|
'{{ "You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans }}');
|
||||||
});
|
});
|
||||||
window.entity = {{ entity_json|json_encode|raw }};
|
window.entity = {{ entity_json|json_encode|raw }};
|
||||||
|
window.startDate = {{ entity.startDate|json_encode|raw }};
|
||||||
|
window.endDate = {{ entity.endDate|json_encode|raw }};
|
||||||
</script>
|
</script>
|
||||||
{{ encore_entry_script_tags('vue_calendar') }}
|
{{ encore_entry_script_tags('vue_calendar') }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user