Improve project navigation
This commit is contained in:
@@ -21,7 +21,7 @@ class Analytic extends Base
|
|||||||
private function layout($template, array $params)
|
private function layout($template, array $params)
|
||||||
{
|
{
|
||||||
$params['board_selector'] = $this->projectPermission->getAllowedProjects($this->userSession->getId());
|
$params['board_selector'] = $this->projectPermission->getAllowedProjects($this->userSession->getId());
|
||||||
$params['analytic_content_for_layout'] = $this->template->render($template, $params);
|
$params['content_for_sublayout'] = $this->template->render($template, $params);
|
||||||
|
|
||||||
return $this->template->layout('analytic/layout', $params);
|
return $this->template->layout('analytic/layout', $params);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -247,12 +247,13 @@ abstract class Base extends \Core\Base
|
|||||||
* @param array $params Template parameters
|
* @param array $params Template parameters
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function projectLayout($template, array $params)
|
protected function projectLayout($template, array $params, $sidebar_template = 'project/sidebar')
|
||||||
{
|
{
|
||||||
$content = $this->template->render($template, $params);
|
$content = $this->template->render($template, $params);
|
||||||
$params['project_content_for_layout'] = $content;
|
$params['project_content_for_layout'] = $content;
|
||||||
$params['title'] = $params['project']['name'] === $params['title'] ? $params['title'] : $params['project']['name'].' > '.$params['title'];
|
$params['title'] = $params['project']['name'] === $params['title'] ? $params['title'] : $params['project']['name'].' > '.$params['title'];
|
||||||
$params['board_selector'] = $this->projectPermission->getAllowedProjects($this->userSession->getId());
|
$params['board_selector'] = $this->projectPermission->getAllowedProjects($this->userSession->getId());
|
||||||
|
$params['sidebar_template'] = $sidebar_template;
|
||||||
|
|
||||||
return $this->template->layout('project/layout', $params);
|
return $this->template->layout('project/layout', $params);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class Budget extends Base
|
|||||||
'daily_budget' => $this->budget->getDailyBudgetBreakdown($project['id']),
|
'daily_budget' => $this->budget->getDailyBudgetBreakdown($project['id']),
|
||||||
'project' => $project,
|
'project' => $project,
|
||||||
'title' => t('Budget')
|
'title' => t('Budget')
|
||||||
)));
|
), 'budget/sidebar'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -47,7 +47,7 @@ class Budget extends Base
|
|||||||
'paginator' => $paginator,
|
'paginator' => $paginator,
|
||||||
'project' => $project,
|
'project' => $project,
|
||||||
'title' => t('Budget')
|
'title' => t('Budget')
|
||||||
)));
|
), 'budget/sidebar'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -68,8 +68,8 @@ class Budget extends Base
|
|||||||
'values' => $values + array('project_id' => $project['id']),
|
'values' => $values + array('project_id' => $project['id']),
|
||||||
'errors' => $errors,
|
'errors' => $errors,
|
||||||
'project' => $project,
|
'project' => $project,
|
||||||
'title' => t('Budget')
|
'title' => t('Budget lines')
|
||||||
)));
|
), 'budget/sidebar'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -111,7 +111,7 @@ class Budget extends Base
|
|||||||
'project' => $project,
|
'project' => $project,
|
||||||
'budget_id' => $this->request->getIntegerParam('budget_id'),
|
'budget_id' => $this->request->getIntegerParam('budget_id'),
|
||||||
'title' => t('Remove a budget line'),
|
'title' => t('Remove a budget line'),
|
||||||
)));
|
), 'budget/sidebar'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class Export extends Base
|
|||||||
'date_formats' => $this->dateParser->getAvailableFormats(),
|
'date_formats' => $this->dateParser->getAvailableFormats(),
|
||||||
'project' => $project,
|
'project' => $project,
|
||||||
'title' => $page_title,
|
'title' => $page_title,
|
||||||
)));
|
), 'export/sidebar'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
namespace Controller;
|
namespace Controller;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project controller
|
* Project controller (Settings + creation/edition)
|
||||||
*
|
*
|
||||||
* @package controller
|
* @package controller
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
@@ -415,91 +415,6 @@ class Project extends Base
|
|||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Activity page for a project
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
public function activity()
|
|
||||||
{
|
|
||||||
$project = $this->getProject();
|
|
||||||
|
|
||||||
$this->response->html($this->template->layout('project/activity', array(
|
|
||||||
'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()),
|
|
||||||
'events' => $this->projectActivity->getProject($project['id']),
|
|
||||||
'project' => $project,
|
|
||||||
'title' => t('%s\'s activity', $project['name'])
|
|
||||||
)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Task search for a given project
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
public function search()
|
|
||||||
{
|
|
||||||
$project = $this->getProject();
|
|
||||||
$search = $this->request->getStringParam('search');
|
|
||||||
$nb_tasks = 0;
|
|
||||||
|
|
||||||
$paginator = $this->paginator
|
|
||||||
->setUrl('project', 'search', array('search' => $search, 'project_id' => $project['id']))
|
|
||||||
->setMax(30)
|
|
||||||
->setOrder('tasks.id')
|
|
||||||
->setDirection('DESC');
|
|
||||||
|
|
||||||
if ($search !== '') {
|
|
||||||
|
|
||||||
$paginator
|
|
||||||
->setQuery($this->taskFinder->getSearchQuery($project['id'], $search))
|
|
||||||
->calculate();
|
|
||||||
|
|
||||||
$nb_tasks = $paginator->getTotal();
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->response->html($this->template->layout('project/search', array(
|
|
||||||
'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()),
|
|
||||||
'values' => array(
|
|
||||||
'search' => $search,
|
|
||||||
'controller' => 'project',
|
|
||||||
'action' => 'search',
|
|
||||||
'project_id' => $project['id'],
|
|
||||||
),
|
|
||||||
'paginator' => $paginator,
|
|
||||||
'project' => $project,
|
|
||||||
'columns' => $this->board->getColumnsList($project['id']),
|
|
||||||
'categories' => $this->category->getList($project['id'], false),
|
|
||||||
'title' => t('Search in the project "%s"', $project['name']).($nb_tasks > 0 ? ' ('.$nb_tasks.')' : '')
|
|
||||||
)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* List of completed tasks for a given project
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
public function tasks()
|
|
||||||
{
|
|
||||||
$project = $this->getProject();
|
|
||||||
$paginator = $this->paginator
|
|
||||||
->setUrl('project', 'tasks', array('project_id' => $project['id']))
|
|
||||||
->setMax(30)
|
|
||||||
->setOrder('tasks.id')
|
|
||||||
->setDirection('DESC')
|
|
||||||
->setQuery($this->taskFinder->getClosedTaskQuery($project['id']))
|
|
||||||
->calculate();
|
|
||||||
|
|
||||||
$this->response->html($this->template->layout('project/tasks', array(
|
|
||||||
'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()),
|
|
||||||
'project' => $project,
|
|
||||||
'columns' => $this->board->getColumnsList($project['id']),
|
|
||||||
'categories' => $this->category->getList($project['id'], false),
|
|
||||||
'paginator' => $paginator,
|
|
||||||
'title' => t('Completed tasks for "%s"', $project['name']).' ('.$paginator->getTotal().')'
|
|
||||||
)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a form to create a new project
|
* Display a form to create a new project
|
||||||
*
|
*
|
||||||
|
|||||||
97
app/Controller/Projectinfo.php
Normal file
97
app/Controller/Projectinfo.php
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Controller;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Project Info controller (ActivityStream + completed tasks)
|
||||||
|
*
|
||||||
|
* @package controller
|
||||||
|
* @author Frederic Guillot
|
||||||
|
*/
|
||||||
|
class Projectinfo extends Base
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Activity page for a project
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
public function activity()
|
||||||
|
{
|
||||||
|
$project = $this->getProject();
|
||||||
|
|
||||||
|
$this->response->html($this->template->layout('projectinfo/activity', array(
|
||||||
|
'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()),
|
||||||
|
'events' => $this->projectActivity->getProject($project['id']),
|
||||||
|
'project' => $project,
|
||||||
|
'title' => t('%s\'s activity', $project['name'])
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Task search for a given project
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
public function search()
|
||||||
|
{
|
||||||
|
$project = $this->getProject();
|
||||||
|
$search = $this->request->getStringParam('search');
|
||||||
|
$nb_tasks = 0;
|
||||||
|
|
||||||
|
$paginator = $this->paginator
|
||||||
|
->setUrl('projectinfo', 'search', array('search' => $search, 'project_id' => $project['id']))
|
||||||
|
->setMax(30)
|
||||||
|
->setOrder('tasks.id')
|
||||||
|
->setDirection('DESC');
|
||||||
|
|
||||||
|
if ($search !== '') {
|
||||||
|
|
||||||
|
$paginator
|
||||||
|
->setQuery($this->taskFinder->getSearchQuery($project['id'], $search))
|
||||||
|
->calculate();
|
||||||
|
|
||||||
|
$nb_tasks = $paginator->getTotal();
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->response->html($this->template->layout('projectinfo/search', array(
|
||||||
|
'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()),
|
||||||
|
'values' => array(
|
||||||
|
'search' => $search,
|
||||||
|
'controller' => 'projectinfo',
|
||||||
|
'action' => 'search',
|
||||||
|
'project_id' => $project['id'],
|
||||||
|
),
|
||||||
|
'paginator' => $paginator,
|
||||||
|
'project' => $project,
|
||||||
|
'columns' => $this->board->getColumnsList($project['id']),
|
||||||
|
'categories' => $this->category->getList($project['id'], false),
|
||||||
|
'title' => t('Search in the project "%s"', $project['name']).($nb_tasks > 0 ? ' ('.$nb_tasks.')' : '')
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of completed tasks for a given project
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
public function tasks()
|
||||||
|
{
|
||||||
|
$project = $this->getProject();
|
||||||
|
$paginator = $this->paginator
|
||||||
|
->setUrl('projectinfo', 'tasks', array('project_id' => $project['id']))
|
||||||
|
->setMax(30)
|
||||||
|
->setOrder('tasks.id')
|
||||||
|
->setDirection('DESC')
|
||||||
|
->setQuery($this->taskFinder->getClosedTaskQuery($project['id']))
|
||||||
|
->calculate();
|
||||||
|
|
||||||
|
$this->response->html($this->template->layout('projectinfo/tasks', array(
|
||||||
|
'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()),
|
||||||
|
'project' => $project,
|
||||||
|
'columns' => $this->board->getColumnsList($project['id']),
|
||||||
|
'categories' => $this->category->getList($project['id'], false),
|
||||||
|
'paginator' => $paginator,
|
||||||
|
'title' => t('Completed tasks for "%s"', $project['name']).' ('.$paginator->getTotal().')'
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -37,7 +37,8 @@ class Acl extends Base
|
|||||||
'board' => '*',
|
'board' => '*',
|
||||||
'comment' => '*',
|
'comment' => '*',
|
||||||
'file' => '*',
|
'file' => '*',
|
||||||
'project' => array('show', 'tasks', 'search', 'activity'),
|
'project' => array('show'),
|
||||||
|
'projectinfo' => array('tasks', 'search', 'activity'),
|
||||||
'subtask' => '*',
|
'subtask' => '*',
|
||||||
'task' => '*',
|
'task' => '*',
|
||||||
'tasklink' => '*',
|
'tasklink' => '*',
|
||||||
|
|||||||
@@ -4,7 +4,24 @@
|
|||||||
<section id="main">
|
<section id="main">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul>
|
<ul>
|
||||||
<li><i class="fa fa-table fa-fw"></i><?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?></li>
|
<li>
|
||||||
|
<span class="dropdown">
|
||||||
|
<span>
|
||||||
|
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
|
||||||
|
<ul>
|
||||||
|
<?= $this->render('project/dropdown', array('project' => $project)) ?>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-table fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-folder fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('All projects'), 'project', 'index') ?>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<section class="sidebar-container" id="analytic-section">
|
<section class="sidebar-container" id="analytic-section">
|
||||||
@@ -12,7 +29,7 @@
|
|||||||
<?= $this->render('analytic/sidebar', array('project' => $project)) ?>
|
<?= $this->render('analytic/sidebar', array('project' => $project)) ?>
|
||||||
|
|
||||||
<div class="sidebar-content">
|
<div class="sidebar-content">
|
||||||
<?= $analytic_content_for_layout ?>
|
<?= $content_for_sublayout ?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@@ -21,41 +21,7 @@
|
|||||||
<i class="fa fa-arrows-h fa-fw"></i> <a href="#" class="filter-toggle-scrolling"><?= t('Horizontal scrolling') ?></a>
|
<i class="fa fa-arrows-h fa-fw"></i> <a href="#" class="filter-toggle-scrolling"><?= t('Horizontal scrolling') ?></a>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<?= $this->render('project/dropdown', array('project' => $project)) ?>
|
||||||
<i class="fa fa-search fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-check-square-o fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-dashboard fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<?php if ($project['is_public']): ?>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-share-alt fa-fw"></i> <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
|
|
||||||
</li>
|
|
||||||
<?php endif ?>
|
|
||||||
<?php if ($this->user->isManager($project['id'])): ?>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-line-chart fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-pie-chart fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-cog fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Configure'), 'project', 'show', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<?php endif ?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h2><?= t('Budget') ?></h2>
|
<h2><?= t('Cost breakdown') ?></h2>
|
||||||
<ul>
|
|
||||||
<li><?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?></li>
|
|
||||||
<li><?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($paginator->isEmpty()): ?>
|
<?php if ($paginator->isEmpty()): ?>
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h2><?= t('Budget') ?></h2>
|
<h2><?= t('Budget lines') ?></h2>
|
||||||
<ul>
|
|
||||||
<li><?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?></li>
|
|
||||||
<li><?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (! empty($lines)): ?>
|
<?php if (! empty($lines)): ?>
|
||||||
|
|||||||
@@ -2,11 +2,7 @@
|
|||||||
<?= $this->asset->js('assets/js/vendor/dimple.v2.1.2.min.js') ?>
|
<?= $this->asset->js('assets/js/vendor/dimple.v2.1.2.min.js') ?>
|
||||||
|
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h2><?= t('Budget') ?></h2>
|
<h2><?= t('Budget overview') ?></h2>
|
||||||
<ul>
|
|
||||||
<li><?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?></li>
|
|
||||||
<li><?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (! empty($daily_budget)): ?>
|
<?php if (! empty($daily_budget)): ?>
|
||||||
@@ -32,4 +28,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</table>
|
</table>
|
||||||
|
<?php else: ?>
|
||||||
|
<p class="alert"><?= t('There is not enough data to show something.') ?></p>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|||||||
14
app/Template/budget/sidebar.php
Normal file
14
app/Template/budget/sidebar.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<div class="sidebar">
|
||||||
|
<h2><?= t('Budget') ?></h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<?= $this->url->link(t('Budget overview'), 'budget', 'index', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
@@ -1,21 +1,23 @@
|
|||||||
<section id="main">
|
<section id="main">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="dropdown">
|
||||||
|
<span>
|
||||||
|
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
|
||||||
|
<ul>
|
||||||
|
<?= $this->render('project/dropdown', array('project' => $project)) ?>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-table fa-fw"></i>
|
<i class="fa fa-table fa-fw"></i>
|
||||||
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-search fa-fw"></i>
|
<i class="fa fa-folder fa-fw"></i>
|
||||||
<?= $this->url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('All projects'), 'project', 'index') ?>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-check-square-o fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-dashboard fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
17
app/Template/export/sidebar.php
Normal file
17
app/Template/export/sidebar.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<div class="sidebar">
|
||||||
|
<h2><?= t('Exports') ?></h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<?= $this->url->link(t('Tasks'), 'export', 'tasks', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $this->url->link(t('Subtasks'), 'export', 'subtasks', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $this->url->link(t('Task transitions'), 'export', 'transitions', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $this->url->link(t('Daily project summary'), 'export', 'summary', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="alert alert-info"><?= t('This report contains all subtasks information for the given date range.') ?></p>
|
||||||
|
|
||||||
<form method="get" action="?" autocomplete="off">
|
<form method="get" action="?" autocomplete="off">
|
||||||
|
|
||||||
<?= $this->form->hidden('controller', $values) ?>
|
<?= $this->form->hidden('controller', $values) ?>
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="alert alert-info"><?= t('This report contains all tasks information for the given date range.') ?></p>
|
||||||
|
|
||||||
<form method="get" action="?" autocomplete="off">
|
<form method="get" action="?" autocomplete="off">
|
||||||
|
|
||||||
<?= $this->form->hidden('controller', $values) ?>
|
<?= $this->form->hidden('controller', $values) ?>
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
<section id="main">
|
|
||||||
<div class="page-header">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-table fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-search fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-check-square-o fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<?php if ($project['is_public']): ?>
|
|
||||||
<li><i class="fa fa-rss-square fa-fw"></i><?= $this->url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?></li>
|
|
||||||
<?php endif ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<section>
|
|
||||||
<?= $this->render('event/events', array('events' => $events)) ?>
|
|
||||||
</section>
|
|
||||||
</section>
|
|
||||||
41
app/Template/project/dropdown.php
Normal file
41
app/Template/project/dropdown.php
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
<li>
|
||||||
|
<i class="fa fa-search fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Search'), 'projectinfo', 'search', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Completed tasks'), 'projectinfo', 'tasks', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-dashboard fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Activity'), 'projectinfo', 'activity', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php if ($project['is_public']): ?>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-share-alt fa-fw"></i> <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php if ($this->user->isManager($project['id'])): ?>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-line-chart fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-pie-chart fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-download fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-cog fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
@@ -1,6 +1,16 @@
|
|||||||
<section id="main">
|
<section id="main">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="dropdown">
|
||||||
|
<span>
|
||||||
|
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
|
||||||
|
<ul>
|
||||||
|
<?= $this->render('project/dropdown', array('project' => $project)) ?>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-table fa-fw"></i>
|
<i class="fa fa-table fa-fw"></i>
|
||||||
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
||||||
@@ -11,9 +21,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<section class="sidebar-container" id="project-section">
|
<section class="sidebar-container">
|
||||||
|
|
||||||
<?= $this->render('project/sidebar', array('project' => $project)) ?>
|
<?= $this->render($sidebar_template, array('project' => $project)) ?>
|
||||||
|
|
||||||
<div class="sidebar-content">
|
<div class="sidebar-content">
|
||||||
<?= $project_content_for_layout ?>
|
<?= $project_content_for_layout ?>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<?php if ($project['is_public']): ?>
|
<?php if ($project['is_public']): ?>
|
||||||
<li><i class="fa fa-share-alt"></i> <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?></li>
|
<li><i class="fa fa-share-alt"></i> <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?></li>
|
||||||
<li><i class="fa fa-rss-square"></i> <?= $this->url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?></li>
|
<li><i class="fa fa-rss-square"></i> <?= $this->url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?></li>
|
||||||
|
<li><i class="fa fa-calendar"></i> <?= $this->url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token'])) ?></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li><?= t('Public access disabled') ?></li>
|
<li><?= t('Public access disabled') ?></li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|||||||
@@ -19,14 +19,14 @@
|
|||||||
<?= $this->url->link(t('Edit board'), 'column', 'index', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Edit board'), 'column', 'index', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<?= $this->url->link(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Swimlanes'), 'swimlane', 'index', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<?= $this->url->link(t('Swimlanes'), 'swimlane', 'index', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Categories'), 'category', 'index', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<?php if ($this->user->isAdmin() || $project['is_private'] == 0): ?>
|
<?php if ($this->user->isAdmin() || $project['is_private'] == 0): ?>
|
||||||
<li>
|
<li>
|
||||||
<?= $this->url->link(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Users'), 'project', 'users', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<li>
|
<li>
|
||||||
@@ -35,9 +35,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<?= $this->url->link(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<?= $this->url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<?php if ($project['is_active']): ?>
|
<?php if ($project['is_active']): ?>
|
||||||
<?= $this->url->link(t('Disable'), 'project', 'disable', array('project_id' => $project['id']), true) ?>
|
<?= $this->url->link(t('Disable'), 'project', 'disable', array('project_id' => $project['id']), true) ?>
|
||||||
@@ -52,22 +49,4 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<?php if ($this->user->isManager($project['id'])): ?>
|
|
||||||
<h2><?= t('Exports') ?></h2>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<?= $this->url->link(t('Tasks'), 'export', 'tasks', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<?= $this->url->link(t('Subtasks'), 'export', 'subtasks', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<?= $this->url->link(t('Task transitions'), 'export', 'transitions', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<?= $this->url->link(t('Daily project summary'), 'export', 'summary', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<?php endif ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
30
app/Template/projectinfo/activity.php
Normal file
30
app/Template/projectinfo/activity.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<section id="main">
|
||||||
|
<div class="page-header">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="dropdown">
|
||||||
|
<span>
|
||||||
|
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
|
||||||
|
<ul>
|
||||||
|
<?= $this->render('project/dropdown', array('project' => $project)) ?>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-table fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-folder fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('All projects'), 'project', 'index') ?>
|
||||||
|
</li>
|
||||||
|
<?php if ($project['is_public']): ?>
|
||||||
|
<li><i class="fa fa-rss-square fa-fw"></i><?= $this->url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?></li>
|
||||||
|
<li><i class="fa fa-calendar fa-fw"></i><?= $this->url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token'])) ?></li>
|
||||||
|
<?php endif ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?= $this->render('event/events', array('events' => $events)) ?>
|
||||||
|
</section>
|
||||||
@@ -1,25 +1,27 @@
|
|||||||
<section id="main">
|
<section id="main">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="dropdown">
|
||||||
|
<span>
|
||||||
|
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
|
||||||
|
<ul>
|
||||||
|
<?= $this->render('project/dropdown', array('project' => $project)) ?>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-table fa-fw"></i>
|
<i class="fa fa-table fa-fw"></i>
|
||||||
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
<i class="fa fa-folder fa-fw"></i>
|
||||||
<?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('All projects'), 'project', 'index') ?>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-check-square-o fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-dashboard fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<section>
|
|
||||||
<form method="get" action="?" autocomplete="off">
|
<form method="get" action="?" autocomplete="off">
|
||||||
<?= $this->form->hidden('controller', $values) ?>
|
<?= $this->form->hidden('controller', $values) ?>
|
||||||
<?= $this->form->hidden('action', $values) ?>
|
<?= $this->form->hidden('action', $values) ?>
|
||||||
@@ -38,5 +40,4 @@
|
|||||||
)) ?>
|
)) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
</section>
|
|
||||||
</section>
|
</section>
|
||||||
@@ -1,27 +1,28 @@
|
|||||||
<section id="main">
|
<section id="main">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="dropdown">
|
||||||
|
<span>
|
||||||
|
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
|
||||||
|
<ul>
|
||||||
|
<?= $this->render('project/dropdown', array('project' => $project)) ?>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-table fa-fw"></i>
|
<i class="fa fa-table fa-fw"></i>
|
||||||
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
<i class="fa fa-folder fa-fw"></i>
|
||||||
<?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link(t('All projects'), 'project', 'index') ?>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-search fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<i class="fa fa-dashboard fa-fw"></i>
|
|
||||||
<?= $this->url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<section>
|
|
||||||
<?php if ($paginator->isEmpty()): ?>
|
<?php if ($paginator->isEmpty()): ?>
|
||||||
<p class="alert"><?= t('No task') ?></p>
|
<p class="alert"><?= t('There is no completed tasks at the moment.') ?></p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->render('task/table', array(
|
<?= $this->render('task/table', array(
|
||||||
'paginator' => $paginator,
|
'paginator' => $paginator,
|
||||||
@@ -29,5 +30,4 @@
|
|||||||
'columns' => $columns,
|
'columns' => $columns,
|
||||||
)) ?>
|
)) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</section>
|
|
||||||
</section>
|
</section>
|
||||||
@@ -5,9 +5,15 @@
|
|||||||
<i class="fa fa-table fa-fw"></i>
|
<i class="fa fa-table fa-fw"></i>
|
||||||
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $task['project_id']), false, '', '', false, 'swimlane-'.$task['swimlane_id']) ?>
|
<?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $task['project_id']), false, '', '', false, 'swimlane-'.$task['swimlane_id']) ?>
|
||||||
</li>
|
</li>
|
||||||
|
<?php if ($this->user->isManager($task['project_id'])): ?>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-cog fa-fw"></i>
|
||||||
|
<?= $this->url->link(t('Project settings'), 'project', 'show', array('project_id' => $task['project_id'])) ?>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
<?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $task['project_id'])) ?>
|
<?= $this->url->link(t('Project calendar'), 'calendar', 'show', array('project_id' => $task['project_id'])) ?>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user