diff options
Diffstat (limited to 'app/Template/calendar')
-rw-r--r-- | app/Template/calendar/show.php | 29 | ||||
-rw-r--r-- | app/Template/calendar/sidebar.php | 40 |
2 files changed, 69 insertions, 0 deletions
diff --git a/app/Template/calendar/show.php b/app/Template/calendar/show.php new file mode 100644 index 00000000..aae856f4 --- /dev/null +++ b/app/Template/calendar/show.php @@ -0,0 +1,29 @@ +<section id="main"> + <div class="page-header"> + <ul> + <li><i class="fa fa-table fa-fw"></i><?= $this->a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?></li> + </ul> + </div> + <section class="sidebar-container"> + + <?= $this->render('calendar/sidebar', array( + 'project' => $project, + 'users_list' => $users_list, + 'categories_list' => $categories_list, + 'columns_list' => $columns_list, + 'swimlanes_list' => $swimlanes_list, + 'colors_list' => $colors_list, + 'status_list' => $status_list + )) ?> + + <div class="sidebar-content"> + <div id="calendar" + data-save-url="<?= $this->u('calendar', 'save', array('project_id' => $project['id'])) ?>" + data-check-url="<?= $this->u('calendar', 'events', array('project_id' => $project['id'])) ?>" + data-check-interval="<?= $check_interval ?>" + data-translations='<?= $this->getCalendarTranslations() ?>' + > + </div> + </div> + </section> +</section> diff --git a/app/Template/calendar/sidebar.php b/app/Template/calendar/sidebar.php new file mode 100644 index 00000000..599b2912 --- /dev/null +++ b/app/Template/calendar/sidebar.php @@ -0,0 +1,40 @@ +<div class="sidebar"> + <ul class="no-bullet"> + <li> + <?= t('Filter by user') ?> + </li> + <li> + <?= $this->formSelect('owner_id', $users_list, array(), array(), 'calendar-filter') ?> + </li> + <li> + <?= t('Filter by category') ?> + </li> + <li> + <?= $this->formSelect('category_id', $categories_list, array(), array(), 'calendar-filter') ?> + </li> + <li> + <?= t('Filter by column') ?> + </li> + <li> + <?= $this->formSelect('column_id', $columns_list, array(), array(), 'calendar-filter') ?> + </li> + <li> + <?= t('Filter by swimlane') ?> + </li> + <li> + <?= $this->formSelect('swimlane_id', $swimlanes_list, array(), array(), 'calendar-filter') ?> + </li> + <li> + <?= t('Filter by color') ?> + </li> + <li> + <?= $this->formSelect('color_id', $colors_list, array(), array(), 'calendar-filter') ?> + </li> + <li> + <?= t('Filter by status') ?> + </li> + <li> + <?= $this->formSelect('is_active', $status_list, array(), array(), 'calendar-filter') ?> + </li> + </ul> +</div> |