rdv: add current event date when edit

This commit is contained in:
nobohan
2021-08-16 14:50:59 +02:00
parent 9907b59379
commit 981c819f56
3 changed files with 12 additions and 3 deletions

View File

@@ -51,8 +51,6 @@
..calendarRange
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a

View File

@@ -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 %}