diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-03-11 15:24:34 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-03-11 15:24:34 -0500 |
commit | a22b8f3dc73555800caf55768f04a7a2ce4af7f2 (patch) | |
tree | 60257cb9b508da83be5a9477c434fb53cc3c6f6d /app/Template/user_view | |
parent | 469112918d0cfa6a43a7fdb829cd19bdf85cfcbe (diff) |
Make user actions available from contextual menu
Diffstat (limited to 'app/Template/user_view')
-rw-r--r-- | app/Template/user_view/notifications.php | 6 | ||||
-rw-r--r-- | app/Template/user_view/sessions.php | 2 | ||||
-rw-r--r-- | app/Template/user_view/share.php | 4 | ||||
-rw-r--r-- | app/Template/user_view/sidebar.php | 2 |
4 files changed, 5 insertions, 9 deletions
diff --git a/app/Template/user_view/notifications.php b/app/Template/user_view/notifications.php index 84ca1282..0f4e59d1 100644 --- a/app/Template/user_view/notifications.php +++ b/app/Template/user_view/notifications.php @@ -18,9 +18,5 @@ <?= $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'), 'UserViewController', 'show', array('user_id' => $user['id'])) ?> - </div> + <?= $this->modal->submitButtons() ?> </form> diff --git a/app/Template/user_view/sessions.php b/app/Template/user_view/sessions.php index 10497e4f..dec11752 100644 --- a/app/Template/user_view/sessions.php +++ b/app/Template/user_view/sessions.php @@ -19,7 +19,7 @@ <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'), 'UserViewController', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?></td> + <td><?= $this->url->link(t('Remove'), 'UserViewController', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true, 'js-modal-replace') ?></td> </tr> <?php endforeach ?> </table> diff --git a/app/Template/user_view/share.php b/app/Template/user_view/share.php index 318d98ea..784e0ebd 100644 --- a/app/Template/user_view/share.php +++ b/app/Template/user_view/share.php @@ -9,7 +9,7 @@ <li><strong><?= $this->url->icon('calendar', t('iCal feed'), 'ICalendarController', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li> </ul> </div> - <?= $this->url->link(t('Disable public access'), 'UserViewController', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> + <?= $this->url->link(t('Disable public access'), 'UserViewController', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red js-modal-replace') ?> <?php else: ?> - <?= $this->url->link(t('Enable public access'), 'UserViewController', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> + <?= $this->url->link(t('Enable public access'), 'UserViewController', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue js-modal-replace') ?> <?php endif ?> diff --git a/app/Template/user_view/sidebar.php b/app/Template/user_view/sidebar.php index ef494e42..1542396a 100644 --- a/app/Template/user_view/sidebar.php +++ b/app/Template/user_view/sidebar.php @@ -49,7 +49,7 @@ <li <?= $this->app->checkMenuSelection('UserModificationController', 'show') ?>> <?= $this->url->link(t('Edit profile'), 'UserModificationController', 'show', array('user_id' => $user['id'])) ?> </li> - <li <?= $this->app->checkMenuSelection('AvatarFile') ?>> + <li <?= $this->app->checkMenuSelection('AvatarFileController') ?>> <?= $this->url->link(t('Avatar'), 'AvatarFileController', 'show', array('user_id' => $user['id'])) ?> </li> <?php endif ?> |