Move Gantt charts to external plugin
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
<li><?= t('Switch to the project overview') ?> = <strong>v o</strong></li>
|
||||
<li><?= t('Switch to the board view') ?> = <strong>v b</strong></li>
|
||||
<li><?= t('Switch to the list view') ?> = <strong>v l</strong></li>
|
||||
<li><?= t('Switch to the Gantt chart view') ?> = <strong>v g</strong></li>
|
||||
</ul>
|
||||
<h3><?= t('Board view') ?></h3>
|
||||
<ul>
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
<li>
|
||||
<?= $this->url->icon('list', t('Listing'), 'TaskListController', 'show', array('project_id' => $project['id'])) ?>
|
||||
</li>
|
||||
<?php if ($this->user->hasProjectAccess('TaskGanttController', 'show', $project['id'])): ?>
|
||||
<li>
|
||||
<?= $this->url->icon('sliders', t('Gantt'), 'TaskGanttController', 'show', array('project_id' => $project['id'])) ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<li>
|
||||
<?= $this->modal->medium('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?>
|
||||
</li>
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
<section id="main">
|
||||
<div class="page-header">
|
||||
<ul>
|
||||
<?php if ($this->user->hasAccess('ProjectCreationController', 'create')): ?>
|
||||
<li>
|
||||
<?= $this->modal->medium('plus', t('New project'), 'ProjectCreationController', 'create') ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if ($this->app->config('disable_private_project', 0) == 0): ?>
|
||||
<li>
|
||||
<?= $this->modal->medium('lock', t('New private project'), 'ProjectCreationController', 'createPrivate') ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<li>
|
||||
<?= $this->url->icon('folder', t('Projects list'), 'ProjectListController', 'show') ?>
|
||||
</li>
|
||||
<?php if ($this->user->hasAccess('ProjectUserOverviewController', 'managers')): ?>
|
||||
<li>
|
||||
<?= $this->url->icon('user', 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>
|
||||
@@ -8,10 +8,6 @@
|
||||
<li <?= $this->app->checkMenuSelection('TaskListController') ?>>
|
||||
<?= $this->url->icon('list', t('List'), 'TaskListController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?>
|
||||
</li>
|
||||
<?php if ($this->user->hasProjectAccess('TaskGanttController', 'show', $project['id'])): ?>
|
||||
<li <?= $this->app->checkMenuSelection('TaskGanttController') ?>>
|
||||
<?= $this->url->icon('sliders', t('Gantt'), 'TaskGanttController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-gantt', t('Keyboard shortcut: "%s"', 'v g')) ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->hook->render('template:project-header:view-switcher', array('project' => $project, 'filters' => $filters)) ?>
|
||||
</ul>
|
||||
|
||||
@@ -18,10 +18,6 @@
|
||||
<li><?= $this->url->icon('user', t('Users overview'), 'ProjectUserOverviewController', 'managers') ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->user->hasAccess('ProjectGanttController', 'show')): ?>
|
||||
<li><?= $this->url->icon('sliders', t('Projects Gantt chart'), 'ProjectGanttController', 'show') ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->hook->render('template:project-list:menu:after') ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -14,11 +14,6 @@
|
||||
<li>
|
||||
<?= $this->url->icon('folder', t('Projects list'), 'ProjectListController', 'show') ?>
|
||||
</li>
|
||||
<?php if ($this->user->hasAccess('ProjectGanttController', 'show')): ?>
|
||||
<li>
|
||||
<?= $this->url->icon('sliders', t('Projects Gantt chart'), 'ProjectGanttController', 'show') ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
</div>
|
||||
<section class="sidebar-container">
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->url->link('<i class="fa fa-th"></i>', 'BoardViewController', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Board')) ?>
|
||||
<?= $this->url->link('<i class="fa fa-sliders fa-fw"></i>', 'TaskGanttController', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Gantt chart')) ?>
|
||||
<?= $this->url->link('<i class="fa fa-cog fa-fw"></i>', 'ProjectViewController', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Project settings')) ?>
|
||||
|
||||
<?= $this->text->e($project['project_name']) ?>
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
<section id="main">
|
||||
<?= $this->projectHeader->render($project, 'TaskGanttController', 'show') ?>
|
||||
<div class="menu-inline">
|
||||
<ul>
|
||||
<li <?= $sorting === 'board' ? 'class="active"' : '' ?>>
|
||||
<?= $this->url->icon('sort-numeric-asc', t('Sort by position'), 'TaskGanttController', 'show', array('project_id' => $project['id'], 'sorting' => 'board')) ?>
|
||||
</li>
|
||||
<li <?= $sorting === 'date' ? 'class="active"' : '' ?>>
|
||||
<?= $this->url->icon('sort-amount-asc', t('Sort by date'), 'TaskGanttController', 'show', array('project_id' => $project['id'], 'sorting' => 'date')) ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $this->modal->large('plus', t('Add task'), 'TaskCreationController', 'show', array('project_id' => $project['id'])) ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php if (! empty($tasks)): ?>
|
||||
<div
|
||||
id="gantt-chart"
|
||||
data-records='<?= json_encode($tasks, JSON_HEX_APOS) ?>'
|
||||
data-save-url="<?= $this->url->href('TaskGanttController', 'save', array('project_id' => $project['id'])) ?>"
|
||||
data-label-start-date="<?= t('Start date:') ?>"
|
||||
data-label-end-date="<?= t('Due date:') ?>"
|
||||
data-label-assignee="<?= t('Assignee:') ?>"
|
||||
data-label-not-defined="<?= t('There is no start date or due date for this task.') ?>"
|
||||
></div>
|
||||
<p class="alert alert-info"><?= t('Moving or resizing a task will change the start and due date of the task.') ?></p>
|
||||
<?php else: ?>
|
||||
<p class="alert"><?= t('There is no task in your project.') ?></p>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
Reference in New Issue
Block a user