diff --git a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php
index 5e5746387..9ce15e682 100644
--- a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php
+++ b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php
@@ -139,10 +139,9 @@ class CalendarController extends AbstractController
$this->addFlash('success', $this->get('translator')->trans('Success : calendar item created!'));
- $params = $this->buildParamsToUrl($user, $accompanyingPeriod); //TODO useful?
- $params['id'] = $entity->getId();
+ $params = $this->buildParamsToUrl($user, $accompanyingPeriod);
- return $this->redirectToRoute('chill_calendar_calendar_show', $params);
+ return $this->redirectToRoute('chill_calendar_calendar', $params);
} elseif ($form->isSubmitted() and !$form->isValid()) {
$this->addFlash('error', $this->get('translator')->trans('This form contains errors'));
}
@@ -241,8 +240,7 @@ class CalendarController extends AbstractController
$this->addFlash('success', $this->get('translator')->trans('Success : calendar item updated!'));
$params = $this->buildParamsToUrl($user, $accompanyingPeriod);
- $params['id'] = $id;
- return $this->redirectToRoute('chill_calendar_calendar_show', $params);
+ return $this->redirectToRoute('chill_calendar_calendar', $params);
} elseif ($form->isSubmitted() and !$form->isValid()) {
$this->addFlash('error', $this->get('translator')->trans('This form contains errors'));
}
@@ -304,7 +302,7 @@ class CalendarController extends AbstractController
$em->flush();
$this->addFlash('success', $this->get('translator')
- ->trans("The calendar has been successfully removed."));
+ ->trans("The calendar item has been successfully removed."));
$params = $this->buildParamsToUrl($user, $accompanyingPeriod);
return $this->redirectToRoute('chill_calendar_calendar', $params);
diff --git a/src/Bundle/ChillCalendarBundle/Form/CalendarType.php b/src/Bundle/ChillCalendarBundle/Form/CalendarType.php
index c2f3ea6ba..990f7ea59 100644
--- a/src/Bundle/ChillCalendarBundle/Form/CalendarType.php
+++ b/src/Bundle/ChillCalendarBundle/Form/CalendarType.php
@@ -48,13 +48,13 @@ class CalendarType extends AbstractType
->add('comment', CommentType::class, [
'required' => false
])
- ->add('cancelReason', EntityType::class, [
- 'required' => false,
- 'class' => CancelReason::class,
- 'choice_label' => function (CancelReason $entity) {
- return $entity->getCanceledBy();
- },
- ])
+ // ->add('cancelReason', EntityType::class, [
+ // 'required' => false,
+ // 'class' => CancelReason::class,
+ // 'choice_label' => function (CancelReason $entity) {
+ // return $entity->getCanceledBy();
+ // },
+ // ])
->add('sendSMS', ChoiceType::class, [
'required' => false,
'choices' => [
diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/chill/index.js b/src/Bundle/ChillCalendarBundle/Resources/public/chill/index.js
new file mode 100644
index 000000000..c6e439991
--- /dev/null
+++ b/src/Bundle/ChillCalendarBundle/Resources/public/chill/index.js
@@ -0,0 +1 @@
+require('./scss/calendar.scss');
\ No newline at end of file
diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/chill/scss/calendar.scss b/src/Bundle/ChillCalendarBundle/Resources/public/chill/scss/calendar.scss
new file mode 100644
index 000000000..b224125f1
--- /dev/null
+++ b/src/Bundle/ChillCalendarBundle/Resources/public/chill/scss/calendar.scss
@@ -0,0 +1,10 @@
+div#calendarControls {
+ height: 50%;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+}
+
+div#fullCalendar{
+
+}
\ No newline at end of file
diff --git a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue
index fb4429a1d..8c762a645 100644
--- a/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue
+++ b/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/App.vue
@@ -1,18 +1,21 @@
-
-
- {{ $t('choose_your_date') }}
-
-
- {{ arg.timeText }}
-
-
+
+
+
+
+
+
+
+ {{ arg.timeText }}
+
+
+