summaryrefslogtreecommitdiff
path: root/plugins/Calendar/Template/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Calendar/Template/calendar')
-rw-r--r--plugins/Calendar/Template/calendar/project.php6
-rw-r--r--plugins/Calendar/Template/calendar/user.php4
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/Calendar/Template/calendar/project.php b/plugins/Calendar/Template/calendar/project.php
new file mode 100644
index 00000000..f1a89d23
--- /dev/null
+++ b/plugins/Calendar/Template/calendar/project.php
@@ -0,0 +1,6 @@
+<?= $this->projectHeader->render($project, 'CalendarController', 'project', false, 'Calendar') ?>
+
+<?= $this->calendar->render(
+ $this->url->href('CalendarController', 'projectEvents', array('project_id' => $project['id'], 'plugin' => 'Calendar')),
+ $this->url->href('CalendarController', 'save', array('project_id' => $project['id'], 'plugin' => 'Calendar'))
+) ?>
diff --git a/plugins/Calendar/Template/calendar/user.php b/plugins/Calendar/Template/calendar/user.php
new file mode 100644
index 00000000..74f00cc9
--- /dev/null
+++ b/plugins/Calendar/Template/calendar/user.php
@@ -0,0 +1,4 @@
+<?= $this->calendar->render(
+ $this->url->href('CalendarController', 'userEvents', array('user_id' => $user['id'], 'plugin' => 'Calendar')),
+ $this->url->href('CalendarController', 'save', array('plugin' => 'Calendar'))
+) ?>