diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-11-15 21:24:25 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-11-15 21:24:25 -0500 |
commit | e2a867166b301fecf32421bfdff8bd8bcf767e89 (patch) | |
tree | 215fcb6d3eaf8b10263cd84de5c3f7096d72ba39 /app | |
parent | 94cd5869bf9e4b86063cbb71777a05525b9d5c52 (diff) |
Convert calendar to VueJS component
Update to FullCalendar 3.1.0 as well.
Diffstat (limited to 'app')
-rw-r--r-- | app/Controller/CalendarController.php | 1 | ||||
-rw-r--r-- | app/Template/calendar/show.php | 9 | ||||
-rw-r--r-- | app/Template/dashboard/calendar.php | 7 |
3 files changed, 5 insertions, 12 deletions
diff --git a/app/Controller/CalendarController.php b/app/Controller/CalendarController.php index e5114f02..5ad253e1 100644 --- a/app/Controller/CalendarController.php +++ b/app/Controller/CalendarController.php @@ -29,7 +29,6 @@ class CalendarController extends BaseController 'project' => $project, 'title' => $project['name'], 'description' => $this->helper->projectHeader->getDescription($project), - 'check_interval' => $this->configModel->get('board_private_refresh_interval'), ))); } diff --git a/app/Template/calendar/show.php b/app/Template/calendar/show.php index 3635f627..739d1eea 100644 --- a/app/Template/calendar/show.php +++ b/app/Template/calendar/show.php @@ -1,9 +1,6 @@ <section id="main"> <?= $this->projectHeader->render($project, 'CalendarController', 'show') ?> - <div id="calendar" - data-save-url="<?= $this->url->href('CalendarController', 'save', array('project_id' => $project['id'])) ?>" - data-check-url="<?= $this->url->href('CalendarController', 'project', array('project_id' => $project['id'])) ?>" - data-check-interval="<?= $check_interval ?>" - > - </div> + <calendar save-url="<?= $this->url->href('CalendarController', 'save', array('project_id' => $project['id'])) ?>" + check-url="<?= $this->url->href('CalendarController', 'project', array('project_id' => $project['id'])) ?>"> + </calendar> </section> diff --git a/app/Template/dashboard/calendar.php b/app/Template/dashboard/calendar.php index 75c96d83..6f156db7 100644 --- a/app/Template/dashboard/calendar.php +++ b/app/Template/dashboard/calendar.php @@ -1,5 +1,2 @@ -<div id="calendar" - data-check-url="<?= $this->url->href('CalendarController', 'user', array('user_id' => $user['id'])) ?>" - data-save-url="<?= $this->url->href('CalendarController', 'save') ?>" -> -</div> +<calendar check-url="<?= $this->url->href('CalendarController', 'user', array('user_id' => $user['id'])) ?>" + save-url="<?= $this->url->href('CalendarController', 'save') ?>"></calendar> |