summaryrefslogtreecommitdiff
path: root/app/Template/user
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/user')
-rw-r--r--app/Template/user/authentication.php28
-rw-r--r--app/Template/user/dropdown.php27
-rw-r--r--app/Template/user/edit.php35
-rw-r--r--app/Template/user/external.php11
-rw-r--r--app/Template/user/index.php66
-rw-r--r--app/Template/user/integrations.php13
-rw-r--r--app/Template/user/last.php24
-rw-r--r--app/Template/user/layout.php19
-rw-r--r--app/Template/user/notifications.php26
-rw-r--r--app/Template/user/password.php26
-rw-r--r--app/Template/user/password_reset.php26
-rw-r--r--app/Template/user/profile.php9
-rw-r--r--app/Template/user/sessions.php26
-rw-r--r--app/Template/user/share.php18
-rw-r--r--app/Template/user/show.php40
-rw-r--r--app/Template/user/sidebar.php83
-rw-r--r--app/Template/user/timesheet.php29
17 files changed, 0 insertions, 506 deletions
diff --git a/app/Template/user/authentication.php b/app/Template/user/authentication.php
deleted file mode 100644
index 6cfd4e57..00000000
--- a/app/Template/user/authentication.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="page-header">
- <h2><?= t('Edit Authentication') ?></h2>
-</div>
-<form method="post" action="<?= $this->url->href('user', 'authentication', array('user_id' => $user['id'])) ?>" autocomplete="off">
-
- <?= $this->form->csrf() ?>
-
- <?= $this->form->hidden('id', $values) ?>
- <?= $this->form->hidden('username', $values) ?>
-
- <?= $this->hook->render('template:user:authentication:form', array('values' => $values, 'errors' => $errors, 'user' => $user)) ?>
-
- <?= $this->form->checkbox('is_ldap_user', t('Remote user'), 1, isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1) ?>
- <?= $this->form->checkbox('disable_login_form', t('Disallow login form'), 1, isset($values['disable_login_form']) && $values['disable_login_form'] == 1) ?>
-
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
- </div>
-
- <div class="alert alert-info">
- <ul>
- <li><?= t('Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts.') ?></li>
- <li><?= t('If you check the box "Disallow login form", credentials entered in the login form will be ignored.') ?></li>
- </ul>
- </div>
-</form> \ No newline at end of file
diff --git a/app/Template/user/dropdown.php b/app/Template/user/dropdown.php
deleted file mode 100644
index 086bf01b..00000000
--- a/app/Template/user/dropdown.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="dropdown">
- <a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-cog fa-fw"></i><i class="fa fa-caret-down"></i></a>
- <ul>
- <li>
- <i class="fa fa-user fa-fw"></i>
- <?= $this->url->link(t('View profile'), 'user', 'show', array('user_id' => $user['id'])) ?>
- </li>
- <?php if ($user['is_active'] == 1 && $this->user->hasAccess('UserStatusController', 'disable') && ! $this->user->isCurrentUser($user['id'])): ?>
- <li>
- <i class="fa fa-times fa-fw"></i>
- <?= $this->url->link(t('Disable'), 'UserStatusController', 'confirmDisable', array('user_id' => $user['id']), false, 'popover') ?>
- </li>
- <?php endif ?>
- <?php if ($user['is_active'] == 0 && $this->user->hasAccess('UserStatusController', 'enable') && ! $this->user->isCurrentUser($user['id'])): ?>
- <li>
- <i class="fa fa-check-square-o fa-fw"></i>
- <?= $this->url->link(t('Enable'), 'UserStatusController', 'confirmEnable', array('user_id' => $user['id']), false, 'popover') ?>
- </li>
- <?php endif ?>
- <?php if ($this->user->hasAccess('UserStatusController', 'remove') && ! $this->user->isCurrentUser($user['id'])): ?>
- <li>
- <i class="fa fa-trash-o fa-fw"></i>
- <?= $this->url->link(t('Remove'), 'UserStatusController', 'confirmRemove', array('user_id' => $user['id']), false, 'popover') ?>
- </li>
- <?php endif ?>
- </ul>
-</div>
diff --git a/app/Template/user/edit.php b/app/Template/user/edit.php
deleted file mode 100644
index 7b51eb73..00000000
--- a/app/Template/user/edit.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="page-header">
- <h2><?= t('Edit user') ?></h2>
-</div>
-<form method="post" action="<?= $this->url->href('user', 'edit', array('user_id' => $user['id'])) ?>" autocomplete="off">
-
- <?= $this->form->csrf() ?>
-
- <?= $this->form->hidden('id', $values) ?>
-
- <?= $this->form->label(t('Username'), 'username') ?>
- <?= $this->form->text('username', $values, $errors, array('required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?>
-
- <?= $this->form->label(t('Name'), 'name') ?>
- <?= $this->form->text('name', $values, $errors) ?>
-
- <?= $this->form->label(t('Email'), 'email') ?>
- <?= $this->form->email('email', $values, $errors) ?>
-
- <?= $this->form->label(t('Timezone'), 'timezone') ?>
- <?= $this->form->select('timezone', $timezones, $values, $errors) ?>
-
- <?= $this->form->label(t('Language'), 'language') ?>
- <?= $this->form->select('language', $languages, $values, $errors) ?>
-
- <?php if ($this->user->isAdmin()): ?>
- <?= $this->form->label(t('Role'), 'role') ?>
- <?= $this->form->select('role', $roles, $values, $errors) ?>
- <?php endif ?>
-
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
- </div>
-</form> \ No newline at end of file
diff --git a/app/Template/user/external.php b/app/Template/user/external.php
deleted file mode 100644
index 22c25af2..00000000
--- a/app/Template/user/external.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<div class="page-header">
- <h2><?= t('External authentications') ?></h2>
-</div>
-
-<?php $html = $this->hook->render('template:user:external', array('user' => $user)) ?>
-
-<?php if (empty($html)): ?>
- <p class="alert"><?= t('No external authentication enabled.') ?></p>
-<?php else: ?>
- <?= $html ?>
-<?php endif ?>
diff --git a/app/Template/user/index.php b/app/Template/user/index.php
deleted file mode 100644
index 15923e84..00000000
--- a/app/Template/user/index.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<section id="main">
- <div class="page-header">
- <?php if ($this->user->hasAccess('UserCreationController', 'show')): ?>
- <ul>
- <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New local user'), 'UserCreationController', 'show', array(), false, 'popover') ?></li>
- <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New remote user'), 'UserCreationController', 'show', array('remote' => 1), false, 'popover') ?></li>
- <li><i class="fa fa-upload fa-fw"></i><?= $this->url->link(t('Import'), 'UserImportController', 'show', array(), false, 'popover') ?></li>
- <li><i class="fa fa-users fa-fw"></i><?= $this->url->link(t('View all groups'), 'GroupListController', 'index') ?></li>
- </ul>
- <?php endif ?>
- </div>
- <?php if ($paginator->isEmpty()): ?>
- <p class="alert"><?= t('No user') ?></p>
- <?php else: ?>
- <table class="table-stripped">
- <tr>
- <th class="column-5"><?= $paginator->order(t('Id'), 'id') ?></th>
- <th class="column-18"><?= $paginator->order(t('Username'), 'username') ?></th>
- <th class="column-18"><?= $paginator->order(t('Name'), 'name') ?></th>
- <th class="column-15"><?= $paginator->order(t('Email'), 'email') ?></th>
- <th class="column-15"><?= $paginator->order(t('Role'), 'role') ?></th>
- <th class="column-10"><?= $paginator->order(t('Two Factor'), 'twofactor_activated') ?></th>
- <th class="column-10"><?= $paginator->order(t('Account type'), 'is_ldap_user') ?></th>
- <th class="column-10"><?= $paginator->order(t('Status'), 'is_active') ?></th>
- <th class="column-5"><?= t('Actions') ?></th>
- </tr>
- <?php foreach ($paginator->getCollection() as $user): ?>
- <tr>
- <td>
- <?= '#'.$user['id'] ?>
- </td>
- <td>
- <?= $this->url->link($this->text->e($user['username']), 'user', 'show', array('user_id' => $user['id'])) ?>
- </td>
- <td>
- <?= $this->text->e($user['name']) ?>
- </td>
- <td>
- <a href="mailto:<?= $this->text->e($user['email']) ?>"><?= $this->text->e($user['email']) ?></a>
- </td>
- <td>
- <?= $this->user->getRoleName($user['role']) ?>
- </td>
- <td>
- <?= $user['twofactor_activated'] ? t('Yes') : t('No') ?>
- </td>
- <td>
- <?= $user['is_ldap_user'] ? t('Remote') : t('Local') ?>
- </td>
- <td>
- <?php if ($user['is_active'] == 1): ?>
- <?= t('Active') ?>
- <?php else: ?>
- <?= t('Inactive') ?>
- <?php endif ?>
- </td>
- <td>
- <?= $this->render('user/dropdown', array('user' => $user)) ?>
- </td>
- </tr>
- <?php endforeach ?>
- </table>
-
- <?= $paginator ?>
- <?php endif ?>
-</section>
diff --git a/app/Template/user/integrations.php b/app/Template/user/integrations.php
deleted file mode 100644
index ef9d8e71..00000000
--- a/app/Template/user/integrations.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<div class="page-header">
- <h2><?= t('Integrations') ?></h2>
-</div>
-
-<form method="post" action="<?= $this->url->href('user', 'integrations', array('user_id' => $user['id'])) ?>" autocomplete="off">
- <?= $this->form->csrf() ?>
- <?php $hooks = $this->hook->render('template:user:integrations', array('values' => $values)) ?>
- <?php if (! empty($hooks)): ?>
- <?= $hooks ?>
- <?php else: ?>
- <p class="alert"><?= t('No external integration registered.') ?></p>
- <?php endif ?>
-</form>
diff --git a/app/Template/user/last.php b/app/Template/user/last.php
deleted file mode 100644
index 3de4d5e2..00000000
--- a/app/Template/user/last.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="page-header">
- <h2><?= t('Last logins') ?></h2>
-</div>
-
-<?php if (empty($last_logins)): ?>
- <p class="alert"><?= t('Never connected.') ?></p>
-<?php else: ?>
- <table class="table-small table-fixed">
- <tr>
- <th class="column-20"><?= t('Login date') ?></th>
- <th class="column-15"><?= t('Authentication method') ?></th>
- <th class="column-15"><?= t('IP address') ?></th>
- <th><?= t('User agent') ?></th>
- </tr>
- <?php foreach ($last_logins as $login): ?>
- <tr>
- <td><?= $this->dt->datetime($login['date_creation']) ?></td>
- <td><?= $this->text->e($login['auth_type']) ?></td>
- <td><?= $this->text->e($login['ip']) ?></td>
- <td><?= $this->text->e($login['user_agent']) ?></td>
- </tr>
- <?php endforeach ?>
- </table>
-<?php endif ?> \ No newline at end of file
diff --git a/app/Template/user/layout.php b/app/Template/user/layout.php
deleted file mode 100644
index 2c4bb7be..00000000
--- a/app/Template/user/layout.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<section id="main">
- <div class="page-header">
- <?php if ($this->user->hasAccess('UserCreationController', 'show')): ?>
- <ul>
- <li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('All users'), 'user', 'index') ?></li>
- <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New local user'), 'UserCreationController', 'show', array(), false, 'popover') ?></li>
- <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New remote user'), 'UserCreationController', 'show', array('remote' => 1), false, 'popover') ?></li>
- <li><i class="fa fa-upload fa-fw"></i><?= $this->url->link(t('Import'), 'UserImportController', 'show', array(), false, 'popover') ?></li>
- <li><i class="fa fa-users fa-fw"></i><?= $this->url->link(t('View all groups'), 'GroupListController', 'index') ?></li>
- </ul>
- <?php endif ?>
- </div>
- <section class="sidebar-container" id="user-section">
- <?= $this->render('user/sidebar', array('user' => $user)) ?>
- <div class="sidebar-content">
- <?= $content_for_sublayout ?>
- </div>
- </section>
-</section>
diff --git a/app/Template/user/notifications.php b/app/Template/user/notifications.php
deleted file mode 100644
index 6e1a0004..00000000
--- a/app/Template/user/notifications.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="page-header">
- <h2><?= t('Notifications') ?></h2>
-</div>
-
-<form method="post" action="<?= $this->url->href('user', 'notifications', array('user_id' => $user['id'])) ?>" autocomplete="off">
- <?= $this->form->csrf() ?>
-
- <h4><?= t('Notification methods:') ?></h4>
- <?= $this->form->checkboxes('notification_types', $types, $notifications) ?>
-
- <hr>
- <h4><?= t('I want to receive notifications for:') ?></h4>
- <?= $this->form->radios('notifications_filter', $filters, $notifications) ?>
-
- <hr>
- <?php if (! empty($projects)): ?>
- <h4><?= t('I want to receive notifications only for those projects:') ?></h4>
- <?= $this->form->checkboxes('notification_projects', $projects, $notifications) ?>
- <?php endif ?>
-
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
- </div>
-</form> \ No newline at end of file
diff --git a/app/Template/user/password.php b/app/Template/user/password.php
deleted file mode 100644
index ea6e997d..00000000
--- a/app/Template/user/password.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="page-header">
- <h2><?= t('Password modification') ?></h2>
-</div>
-
-<form method="post" action="<?= $this->url->href('user', 'password', array('user_id' => $user['id'])) ?>" autocomplete="off">
-
- <?= $this->form->hidden('id', $values) ?>
- <?= $this->form->csrf() ?>
-
- <div class="alert alert-error">
- <?= $this->form->label(t('Current password for the user "%s"', $this->user->getFullname()), 'current_password') ?>
- <?= $this->form->password('current_password', $values, $errors) ?>
- </div>
-
- <?= $this->form->label(t('New password for the user "%s"', $this->user->getFullname($user)), 'password') ?>
- <?= $this->form->password('password', $values, $errors) ?>
-
- <?= $this->form->label(t('Confirmation'), 'confirmation') ?>
- <?= $this->form->password('confirmation', $values, $errors) ?>
-
- <div class="form-actions">
- <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
- </div>
-</form>
diff --git a/app/Template/user/password_reset.php b/app/Template/user/password_reset.php
deleted file mode 100644
index 1371ce11..00000000
--- a/app/Template/user/password_reset.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="page-header">
- <h2><?= t('Last Password Reset') ?></h2>
-</div>
-
-<?php if (empty($tokens)): ?>
- <p class="alert"><?= t('The password has never been reinitialized.') ?></p>
-<?php else: ?>
- <table class="table-small table-fixed">
- <tr>
- <th class="column-20"><?= t('Creation') ?></th>
- <th class="column-20"><?= t('Expiration') ?></th>
- <th class="column-5"><?= t('Active') ?></th>
- <th class="column-15"><?= t('IP address') ?></th>
- <th><?= t('User agent') ?></th>
- </tr>
- <?php foreach ($tokens as $token): ?>
- <tr>
- <td><?= $this->dt->datetime($token['date_creation']) ?></td>
- <td><?= $this->dt->datetime($token['date_expiration']) ?></td>
- <td><?= $token['is_active'] == 0 ? t('No') : t('Yes') ?></td>
- <td><?= $this->text->e($token['ip']) ?></td>
- <td><?= $this->text->e($token['user_agent']) ?></td>
- </tr>
- <?php endforeach ?>
- </table>
-<?php endif ?> \ No newline at end of file
diff --git a/app/Template/user/profile.php b/app/Template/user/profile.php
deleted file mode 100644
index 9c9d3282..00000000
--- a/app/Template/user/profile.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<section id="main">
- <br>
- <?= $this->avatar->render($user['id'], $user['username'], $user['name'], $user['email'], $user['avatar_path']) ?>
- <ul class="listing">
- <li><?= t('Username:') ?> <strong><?= $this->text->e($user['username']) ?></strong></li>
- <li><?= t('Name:') ?> <strong><?= $this->text->e($user['name']) ?: t('None') ?></strong></li>
- <li><?= t('Email:') ?> <strong><?= $this->text->e($user['email']) ?: t('None') ?></strong></li>
- </ul>
-</section> \ No newline at end of file
diff --git a/app/Template/user/sessions.php b/app/Template/user/sessions.php
deleted file mode 100644
index d7fe895d..00000000
--- a/app/Template/user/sessions.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="page-header">
- <h2><?= t('Persistent connections') ?></h2>
-</div>
-
-<?php if (empty($sessions)): ?>
- <p class="alert"><?= t('No session.') ?></p>
-<?php else: ?>
- <table class="table-small table-fixed">
- <tr>
- <th class="column-20"><?= t('Creation date') ?></th>
- <th class="column-20"><?= t('Expiration date') ?></th>
- <th class="column-15"><?= t('IP address') ?></th>
- <th><?= t('User agent') ?></th>
- <th class="column-10"><?= t('Action') ?></th>
- </tr>
- <?php foreach ($sessions as $session): ?>
- <tr>
- <td><?= $this->dt->datetime($session['date_creation']) ?></td>
- <td><?= $this->dt->datetime($session['expiration']) ?></td>
- <td><?= $this->text->e($session['ip']) ?></td>
- <td><?= $this->text->e($session['user_agent']) ?></td>
- <td><?= $this->url->link(t('Remove'), 'User', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?></td>
- </tr>
- <?php endforeach ?>
- </table>
-<?php endif ?>
diff --git a/app/Template/user/share.php b/app/Template/user/share.php
deleted file mode 100644
index 56dc8675..00000000
--- a/app/Template/user/share.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<div class="page-header">
- <h2><?= t('Public access') ?></h2>
-</div>
-
-<?php if (! empty($user['token'])): ?>
-
- <div class="listing">
- <ul class="no-bullet">
- <li><strong><i class="fa fa-rss-square"></i> <?= $this->url->link(t('RSS feed'), 'feed', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li>
- <li><strong><i class="fa fa-calendar"></i> <?= $this->url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li>
- </ul>
- </div>
-
- <?= $this->url->link(t('Disable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?>
-
-<?php else: ?>
- <?= $this->url->link(t('Enable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?>
-<?php endif ?>
diff --git a/app/Template/user/show.php b/app/Template/user/show.php
deleted file mode 100644
index df0affb8..00000000
--- a/app/Template/user/show.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="page-header">
- <h2><?= t('Summary') ?></h2>
-</div>
-<ul class="listing">
- <li><?= t('Username:') ?> <strong><?= $this->text->e($user['username']) ?></strong></li>
- <li><?= t('Name:') ?> <strong><?= $this->text->e($user['name']) ?: t('None') ?></strong></li>
- <li><?= t('Email:') ?> <strong><?= $this->text->e($user['email']) ?: t('None') ?></strong></li>
- <li><?= t('Status:') ?> <strong><?= $user['is_active'] ? t('Active') : t('Inactive') ?></strong></li>
-</ul>
-
-<div class="page-header">
- <h2><?= t('Security') ?></h2>
-</div>
-<ul class="listing">
- <li><?= t('Role:') ?> <strong><?= $this->user->getRoleName($user['role']) ?></strong></li>
- <li><?= t('Account type:') ?> <strong><?= $user['is_ldap_user'] ? t('Remote') : t('Local') ?></strong></li>
- <li><?= $user['twofactor_activated'] == 1 ? t('Two factor authentication enabled') : t('Two factor authentication disabled') ?></li>
-</ul>
-
-<div class="page-header">
- <h2><?= t('Preferences') ?></h2>
-</div>
-<ul class="listing">
- <li><?= t('Timezone:') ?> <strong><?= $this->text->in($user['timezone'], $timezones) ?></strong></li>
- <li><?= t('Language:') ?> <strong><?= $this->text->in($user['language'], $languages) ?></strong></li>
- <li><?= t('Notifications:') ?> <strong><?= $user['notifications_enabled'] == 1 ? t('Enabled') : t('Disabled') ?></strong></li>
-</ul>
-
-<?php if (! empty($user['token'])): ?>
- <div class="page-header">
- <h2><?= t('Public access') ?></h2>
- </div>
-
- <div class="listing">
- <ul class="no-bullet">
- <li><strong><i class="fa fa-rss-square"></i> <?= $this->url->link(t('RSS feed'), 'feed', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li>
- <li><strong><i class="fa fa-calendar"></i> <?= $this->url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li>
- </ul>
- </div>
-<?php endif ?>
diff --git a/app/Template/user/sidebar.php b/app/Template/user/sidebar.php
deleted file mode 100644
index 9da43ced..00000000
--- a/app/Template/user/sidebar.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<div class="sidebar">
- <h2><?= t('Information') ?></h2>
- <ul>
- <?php if ($this->user->hasAccess('user', 'show')): ?>
- <li <?= $this->app->checkMenuSelection('user', 'show') ?>>
- <?= $this->url->link(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
- <?php if ($this->user->isAdmin()): ?>
- <li>
- <?= $this->url->link(t('User dashboard'), 'DashboardController', 'show', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
- <?php if ($this->user->isAdmin() || $this->user->isCurrentUser($user['id'])): ?>
- <li <?= $this->app->checkMenuSelection('user', 'timesheet') ?>>
- <?= $this->url->link(t('Time tracking'), 'user', 'timesheet', array('user_id' => $user['id'])) ?>
- </li>
- <li <?= $this->app->checkMenuSelection('user', 'last') ?>>
- <?= $this->url->link(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?>
- </li>
- <li <?= $this->app->checkMenuSelection('user', 'sessions') ?>>
- <?= $this->url->link(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?>
- </li>
- <li <?= $this->app->checkMenuSelection('user', 'passwordReset') ?>>
- <?= $this->url->link(t('Password reset history'), 'user', 'passwordReset', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
-
- <?= $this->hook->render('template:user:sidebar:information', array('user' => $user)) ?>
- </ul>
-
- <h2><?= t('Actions') ?></h2>
- <ul>
- <?php if ($this->user->isAdmin() || $this->user->isCurrentUser($user['id'])): ?>
-
- <?php if ($this->user->hasAccess('user', 'edit')): ?>
- <li <?= $this->app->checkMenuSelection('user', 'edit') ?>>
- <?= $this->url->link(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?>
- </li>
- <li <?= $this->app->checkMenuSelection('AvatarFile') ?>>
- <?= $this->url->link(t('Avatar'), 'AvatarFile', 'show', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
-
- <?php if ($user['is_ldap_user'] == 0): ?>
- <li <?= $this->app->checkMenuSelection('user', 'password') ?>>
- <?= $this->url->link(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
-
- <?php if ($this->user->isCurrentUser($user['id'])): ?>
- <li <?= $this->app->checkMenuSelection('twofactor', 'index') ?>>
- <?= $this->url->link(t('Two factor authentication'), 'twofactor', 'index', array('user_id' => $user['id'])) ?>
- </li>
- <?php elseif ($this->user->hasAccess('twofactor', 'disable') && $user['twofactor_activated'] == 1): ?>
- <li <?= $this->app->checkMenuSelection('twofactor', 'disable') ?>>
- <?= $this->url->link(t('Two factor authentication'), 'twofactor', 'disable', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
-
- <li <?= $this->app->checkMenuSelection('user', 'share') ?>>
- <?= $this->url->link(t('Public access'), 'user', 'share', array('user_id' => $user['id'])) ?>
- </li>
- <li <?= $this->app->checkMenuSelection('user', 'notifications') ?>>
- <?= $this->url->link(t('Notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?>
- </li>
- <li <?= $this->app->checkMenuSelection('user', 'external') ?>>
- <?= $this->url->link(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?>
- </li>
- <li <?= $this->app->checkMenuSelection('user', 'integrations') ?>>
- <?= $this->url->link(t('Integrations'), 'user', 'integrations', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
-
- <?php if ($this->user->hasAccess('user', 'authentication')): ?>
- <li <?= $this->app->checkMenuSelection('user', 'authentication') ?>>
- <?= $this->url->link(t('Edit Authentication'), 'user', 'authentication', array('user_id' => $user['id'])) ?>
- </li>
- <?php endif ?>
-
- <?= $this->hook->render('template:user:sidebar:actions', array('user' => $user)) ?>
- </ul>
-</div>
diff --git a/app/Template/user/timesheet.php b/app/Template/user/timesheet.php
deleted file mode 100644
index 92ebafb5..00000000
--- a/app/Template/user/timesheet.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="page-header">
- <h2><?= t('Time Tracking') ?></h2>
-</div>
-
-<h3><?= t('Subtask timesheet') ?></h3>
-<?php if ($subtask_paginator->isEmpty()): ?>
- <p class="alert"><?= t('There is nothing to show.') ?></p>
-<?php else: ?>
- <table class="table-fixed">
- <tr>
- <th class="column-25"><?= $subtask_paginator->order(t('Task'), 'task_title') ?></th>
- <th class="column-25"><?= $subtask_paginator->order(t('Subtask'), 'subtask_title') ?></th>
- <th class="column-20"><?= $subtask_paginator->order(t('Start'), 'start') ?></th>
- <th class="column-20"><?= $subtask_paginator->order(t('End'), 'end') ?></th>
- <th class="column-10"><?= $subtask_paginator->order(t('Time spent'), 'time_spent') ?></th>
- </tr>
- <?php foreach ($subtask_paginator->getCollection() as $record): ?>
- <tr>
- <td><?= $this->url->link($this->text->e($record['task_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?></td>
- <td><?= $this->url->link($this->text->e($record['subtask_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?></td>
- <td><?= $this->dt->datetime($record['start']) ?></td>
- <td><?= $this->dt->datetime($record['end']) ?></td>
- <td><?= n($record['time_spent']).' '.t('hours') ?></td>
- </tr>
- <?php endforeach ?>
- </table>
-
- <?= $subtask_paginator ?>
-<?php endif ?> \ No newline at end of file