diff options
Diffstat (limited to 'app/Template/project_user')
-rw-r--r-- | app/Template/project_user/layout.php | 27 | ||||
-rw-r--r-- | app/Template/project_user/roles.php | 33 | ||||
-rw-r--r-- | app/Template/project_user/sidebar.php | 30 | ||||
-rw-r--r-- | app/Template/project_user/tasks.php | 46 | ||||
-rw-r--r-- | app/Template/project_user/tooltip_users.php | 16 |
5 files changed, 0 insertions, 152 deletions
diff --git a/app/Template/project_user/layout.php b/app/Template/project_user/layout.php deleted file mode 100644 index ab4326f6..00000000 --- a/app/Template/project_user/layout.php +++ /dev/null @@ -1,27 +0,0 @@ -<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('gantt', 'projects')): ?> - <li> - <i class="fa fa-sliders fa-fw"></i> - <?= $this->url->link(t('Projects Gantt chart'), 'gantt', 'projects') ?> - </li> - <?php endif ?> - </ul> - </div> - <section class="sidebar-container"> - - <?= $this->render($sidebar_template, array('users' => $users, 'filter' => $filter)) ?> - - <div class="sidebar-content"> - <div class="page-header"> - <h2><?= $this->text->e($title) ?></h2> - </div> - <?= $content_for_sublayout ?> - </div> - </section> -</section> diff --git a/app/Template/project_user/roles.php b/app/Template/project_user/roles.php deleted file mode 100644 index 6be929d8..00000000 --- a/app/Template/project_user/roles.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php if ($paginator->isEmpty()): ?> - <p class="alert"><?= t('No project') ?></p> -<?php else: ?> - <table class="table-fixed"> - <tr> - <th class="column-20"><?= $paginator->order(t('User'), 'users.username') ?></th> - <th class="column-25"><?= $paginator->order(t('Project'), 'projects.name') ?></th> - <th><?= t('Columns') ?></th> - </tr> - <?php foreach ($paginator->getCollection() as $project): ?> - <tr> - <td> - <?= $this->text->e($this->user->getFullname($project)) ?> - </td> - <td> - <?= $this->url->link('<i class="fa fa-th"></i>', 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Board')) ?> - <?= $this->url->link('<i class="fa fa-sliders fa-fw"></i>', 'gantt', 'project', 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']) ?> - </td> - <td class="dashboard-project-stats"> - <?php foreach ($project['columns'] as $column): ?> - <strong title="<?= t('Task count') ?>"><?= $column['nb_tasks'] ?></strong> - <span><?= $this->text->e($column['title']) ?></span> - <?php endforeach ?> - </td> - </tr> - <?php endforeach ?> - </table> - - <?= $paginator ?> -<?php endif ?> diff --git a/app/Template/project_user/sidebar.php b/app/Template/project_user/sidebar.php deleted file mode 100644 index f1cffcad..00000000 --- a/app/Template/project_user/sidebar.php +++ /dev/null @@ -1,30 +0,0 @@ -<div class="sidebar"> - <h2><?= t('Actions') ?></h2> - - <?= $this->form->select( - 'user_id', - $users, - $filter, - array(), - array('data-redirect-url="'.$this->url->href('projectuser', $this->app->getRouterAction(), array('user_id' => 'USER_ID')).'"', 'data-redirect-regex="USER_ID"'), - 'chosen-select select-auto-redirect' - ) ?> - - <br><br> - <ul> - <li <?= $this->app->checkMenuSelection('projectuser', 'managers') ?>> - <?= $this->url->link(t('Project managers'), 'projectuser', 'managers', $filter) ?> - </li> - <li <?= $this->app->checkMenuSelection('projectuser', 'members') ?>> - <?= $this->url->link(t('Project members'), 'projectuser', 'members', $filter) ?> - </li> - <li <?= $this->app->checkMenuSelection('projectuser', 'opens') ?>> - <?= $this->url->link(t('Open tasks'), 'projectuser', 'opens', $filter) ?> - </li> - <li <?= $this->app->checkMenuSelection('projectuser', 'closed') ?>> - <?= $this->url->link(t('Closed tasks'), 'projectuser', 'closed', $filter) ?> - </li> - - <?= $this->hook->render('template:project-user:sidebar') ?> - </ul> -</div> diff --git a/app/Template/project_user/tasks.php b/app/Template/project_user/tasks.php deleted file mode 100644 index d459c133..00000000 --- a/app/Template/project_user/tasks.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php if ($paginator->isEmpty()): ?> - <p class="alert"><?= t('No tasks found.') ?></p> -<?php elseif (! $paginator->isEmpty()): ?> - <table class="table-small"> - <tr> - <th class="column-5"><?= $paginator->order(t('Id'), 'tasks.id') ?></th> - <th class="column-10"><?= $paginator->order(t('Project'), 'projects.name') ?></th> - <th class="column-15"><?= $paginator->order(t('Column'), 'tasks.column_id') ?></th> - <th><?= $paginator->order(t('Title'), 'tasks.title') ?></th> - <th class="column-15"><?= $paginator->order(t('Assignee'), 'users.username') ?></th> - <th class="column-15"><?= $paginator->order(t('Start date'), 'tasks.date_started') ?></th> - <th class="column-15"><?= $paginator->order(t('Due date'), 'tasks.date_due') ?></th> - </tr> - <?php foreach ($paginator->getCollection() as $task): ?> - <tr> - <td class="task-table color-<?= $task['color_id'] ?>"> - <?= $this->url->link('#'.$this->text->e($task['id']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> - </td> - <td> - <?= $this->url->link($this->text->e($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?> - </td> - <td> - <?= $this->text->e($task['column_name']) ?> - </td> - <td> - <?= $this->url->link($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> - </td> - <td> - <?php if ($task['assignee_username']): ?> - <?= $this->text->e($task['assignee_name'] ?: $task['assignee_username']) ?> - <?php else: ?> - <?= t('Unassigned') ?> - <?php endif ?> - </td> - <td> - <?= $this->dt->date($task['date_started']) ?> - </td> - <td> - <?= $this->dt->date($task['date_due']) ?> - </td> - </tr> - <?php endforeach ?> - </table> - - <?= $paginator ?> -<?php endif ?> diff --git a/app/Template/project_user/tooltip_users.php b/app/Template/project_user/tooltip_users.php deleted file mode 100644 index 81300eaa..00000000 --- a/app/Template/project_user/tooltip_users.php +++ /dev/null @@ -1,16 +0,0 @@ -<?php if (empty($users)): ?> - <p><?= t('There is no project member.') ?></p> -<?php else: ?> - <table> - <?php foreach ($roles as $role => $role_name): ?> - <?php if (isset($users[$role])): ?> - <tr><th><?= $role_name ?></th></tr> - <?php foreach ($users[$role] as $user_id => $user): ?> - <tr><td> - <?= $this->url->link($this->text->e($user), 'Projectuser', 'opens', array('user_id' => $user_id)) ?> - </td></tr> - <?php endforeach ?> - <?php endif ?> - <?php endforeach ?> - </table> -<?php endif ?> |