diff options
Diffstat (limited to 'app/Template/project_gantt')
-rw-r--r-- | app/Template/project_gantt/show.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/Template/project_gantt/show.php b/app/Template/project_gantt/show.php new file mode 100644 index 00000000..af22a6ed --- /dev/null +++ b/app/Template/project_gantt/show.php @@ -0,0 +1,30 @@ +<section id="main"> + <div class="page-header"> + <ul> + <li> + <i class="fa fa-folder fa-fw"></i><?= $this->url->link(t('Projects list'), 'ProjectListController', 'show') ?> + </li> + <?php if ($this->user->hasAccess('ProjectUserOverviewController', 'managers')): ?> + <li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('Users overview'), 'ProjectUserOverviewController', 'managers') ?></li> + <?php endif ?> + </ul> + </div> + <section> + <?php if (empty($projects)): ?> + <p class="alert"><?= t('No project') ?></p> + <?php else: ?> + <div + id="gantt-chart" + data-records='<?= json_encode($projects, JSON_HEX_APOS) ?>' + data-save-url="<?= $this->url->href('ProjectGanttController', 'save') ?>" + data-label-project-manager="<?= t('Project managers') ?>" + data-label-project-member="<?= t('Project members') ?>" + data-label-gantt-link="<?= t('Gantt chart for this project') ?>" + data-label-board-link="<?= t('Project board') ?>" + data-label-start-date="<?= t('Start date:') ?>" + data-label-end-date="<?= t('End date:') ?>" + data-label-not-defined="<?= t('There is no start date or end date for this project.') ?>" + ></div> + <?php endif ?> + </section> +</section> |