diff options
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/calendar/show.php | 9 | ||||
-rw-r--r-- | app/Template/dashboard/calendar.php | 6 |
2 files changed, 10 insertions, 5 deletions
diff --git a/app/Template/calendar/show.php b/app/Template/calendar/show.php index 739d1eea..009fc07e 100644 --- a/app/Template/calendar/show.php +++ b/app/Template/calendar/show.php @@ -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> diff --git a/app/Template/dashboard/calendar.php b/app/Template/dashboard/calendar.php index 6f156db7..0b768b31 100644 --- a/app/Template/dashboard/calendar.php +++ b/app/Template/dashboard/calendar.php @@ -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') +) ?> |