Replace calendar component by vanilla javascript

This commit is contained in:
Frederic Guillot
2016-11-21 22:08:35 -05:00
parent 5188ed8cfe
commit a3bb27109d
5 changed files with 36 additions and 16 deletions

View File

@@ -1,6 +1,9 @@
<section id="main">
<?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
<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>
<?= $this->calendar->render(
$this->url->href('CalendarController', 'project', array('project_id' => $project['id'])),
$this->url->href('CalendarController', 'save', array('project_id' => $project['id']))
) ?>
</section>

View File

@@ -1,2 +1,4 @@
<calendar check-url="<?= $this->url->href('CalendarController', 'user', array('user_id' => $user['id'])) ?>"
save-url="<?= $this->url->href('CalendarController', 'save') ?>"></calendar>
<?= $this->calendar->render(
$this->url->href('CalendarController', 'user', array('user_id' => $user['id'])),
$this->url->href('CalendarController', 'save')
) ?>