diff options
Diffstat (limited to 'plugins/Calendar/Template')
-rw-r--r-- | plugins/Calendar/Template/calendar/project.php | 6 | ||||
-rw-r--r-- | plugins/Calendar/Template/calendar/user.php | 4 | ||||
-rw-r--r-- | plugins/Calendar/Template/config/calendar.php | 31 | ||||
-rw-r--r-- | plugins/Calendar/Template/config/sidebar.php | 3 | ||||
-rw-r--r-- | plugins/Calendar/Template/dashboard/menu.php | 3 | ||||
-rw-r--r-- | plugins/Calendar/Template/project/dropdown.php | 3 | ||||
-rw-r--r-- | plugins/Calendar/Template/project_header/views.php | 3 |
7 files changed, 53 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')) +) ?> diff --git a/plugins/Calendar/Template/config/calendar.php b/plugins/Calendar/Template/config/calendar.php new file mode 100644 index 00000000..2221294b --- /dev/null +++ b/plugins/Calendar/Template/config/calendar.php @@ -0,0 +1,31 @@ +<div class="page-header"> + <h2><?= t('Calendar settings') ?></h2> +</div> +<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('plugin' => 'Calendar')) ?>" autocomplete="off"> + + <?= $this->form->csrf() ?> + + <fieldset> + <legend><?= t('Project calendar view') ?></legend> + <?= $this->form->radios('calendar_project_tasks', array( + 'date_creation' => t('Show tasks based on the creation date'), + 'date_started' => t('Show tasks based on the start date'), + ), + $values + ) ?> + </fieldset> + + <fieldset> + <legend><?= t('User calendar view') ?></legend> + <?= $this->form->radios('calendar_user_tasks', array( + 'date_creation' => t('Show tasks based on the creation date'), + 'date_started' => t('Show tasks based on the start date'), + ), + $values + ) ?> + </fieldset> + + <div class="form-actions"> + <button type="submit" class="btn btn-blue"><?= t('Save') ?></button> + </div> +</form> diff --git a/plugins/Calendar/Template/config/sidebar.php b/plugins/Calendar/Template/config/sidebar.php new file mode 100644 index 00000000..040f4807 --- /dev/null +++ b/plugins/Calendar/Template/config/sidebar.php @@ -0,0 +1,3 @@ +<li <?= $this->app->checkMenuSelection('ConfigController', 'show', 'Calendar') ?>> + <?= $this->url->link(t('Calendar settings'), 'ConfigController', 'show', array('plugin' => 'Calendar')) ?> +</li>
\ No newline at end of file diff --git a/plugins/Calendar/Template/dashboard/menu.php b/plugins/Calendar/Template/dashboard/menu.php new file mode 100644 index 00000000..5558cc87 --- /dev/null +++ b/plugins/Calendar/Template/dashboard/menu.php @@ -0,0 +1,3 @@ +<li> + <?= $this->modal->medium('calendar', t('My calendar'), 'CalendarController', 'user', array('plugin' => 'Calendar')) ?> +</li> diff --git a/plugins/Calendar/Template/project/dropdown.php b/plugins/Calendar/Template/project/dropdown.php new file mode 100644 index 00000000..539f72ef --- /dev/null +++ b/plugins/Calendar/Template/project/dropdown.php @@ -0,0 +1,3 @@ +<li> + <?= $this->url->icon('calendar', t('Calendar'), 'CalendarController', 'project', array('project_id' => $project['id'], 'plugin' => 'Calendar')) ?> +</li>
\ No newline at end of file diff --git a/plugins/Calendar/Template/project_header/views.php b/plugins/Calendar/Template/project_header/views.php new file mode 100644 index 00000000..01c246e1 --- /dev/null +++ b/plugins/Calendar/Template/project_header/views.php @@ -0,0 +1,3 @@ +<li <?= $this->app->checkMenuSelection('CalendarController') ?>> + <?= $this->url->icon('calendar', t('Calendar'), 'CalendarController', 'project', array('project_id' => $project['id'], 'search' => $filters['search'], 'plugin' => 'Calendar'), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?> +</li>
\ No newline at end of file |