rdv: change entrypoint for calendar css + correct calendar controls as a function of context

This commit is contained in:
nobohan 2021-08-23 09:36:53 +02:00
parent 68538f0e85
commit 864f84fede
4 changed files with 7 additions and 13 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="calendar__controls">
<div>
<h2 class="chill-red">{{ $t('choose_your_calendar_user') }}</h2>
<VueMultiselect
name="field"
@ -201,12 +201,3 @@ export default {
<style src="vue-multiselect/dist/vue-multiselect.css"></style>
<style lang="scss" scoped>
div.calendar__controls {
background-color: 'black';
height: 50%;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
</style>

View File

@ -48,7 +48,9 @@
{{ form_row(form.sendSMS) }}
{% endif %}
<div id="calendarControls"></div>
{% if context == 'user' %}
<div id="calendarControls"></div>
{% endif %}
<div id="fullCalendar"></div>

View File

@ -35,6 +35,7 @@
{% block css %}
{{ parent() }}
{{ encore_entry_link_tags('vue_calendar') }}
{{ encore_entry_link_tags('page_calendar') }}
{% endblock %}
{% block block_post_menu %}

View File

@ -1,10 +1,10 @@
// this file loads all assets from the Chill calendar bundle
module.exports = function(encore, entries) {
entries.push(__dirname + '/Resources/public/chill/index.js');
encore.addAliases({
ChillCalendarAssets: __dirname + '/Resources/public'
});
encore.addEntry('vue_calendar', __dirname + '/Resources/public/vuejs/Calendar/index.js');
encore.addEntry('page_calendar', __dirname + '/Resources/public/chill/index.js');
};