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: {
|
||||
plugins: [ dayGridPlugin, interactionPlugin, timeGridPlugin ],
|
||||
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,
|
||||
select: this.onDateSelect,
|
||||
selectMirror: true,
|
||||
|
@ -51,8 +51,6 @@
|
||||
|
||||
..calendarRange
|
||||
|
||||
|
||||
|
||||
<ul class="record_actions sticky-form-buttons">
|
||||
<li class="cancel">
|
||||
<a
|
||||
|
@ -24,7 +24,9 @@
|
||||
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 }}');
|
||||
});
|
||||
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>
|
||||
{{ encore_entry_script_tags('vue_calendar') }}
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user