summaryrefslogtreecommitdiff
path: root/app/Template/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/calendar')
-rw-r--r--app/Template/calendar/project.php6
-rw-r--r--app/Template/calendar/show.php9
-rw-r--r--app/Template/calendar/user.php4
3 files changed, 10 insertions, 9 deletions
diff --git a/app/Template/calendar/project.php b/app/Template/calendar/project.php
new file mode 100644
index 00000000..769e019b
--- /dev/null
+++ b/app/Template/calendar/project.php
@@ -0,0 +1,6 @@
+<?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
+
+<?= $this->calendar->render(
+ $this->url->href('CalendarController', 'projectEvents', array('project_id' => $project['id'])),
+ $this->url->href('CalendarController', 'save', array('project_id' => $project['id']))
+) ?>
diff --git a/app/Template/calendar/show.php b/app/Template/calendar/show.php
deleted file mode 100644
index 009fc07e..00000000
--- a/app/Template/calendar/show.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<section id="main">
- <?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
-
- <?= $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/calendar/user.php b/app/Template/calendar/user.php
new file mode 100644
index 00000000..c68bd32d
--- /dev/null
+++ b/app/Template/calendar/user.php
@@ -0,0 +1,4 @@
+<?= $this->calendar->render(
+ $this->url->href('CalendarController', 'userEvents', array('user_id' => $user['id'])),
+ $this->url->href('CalendarController', 'save')
+) ?>