summaryrefslogtreecommitdiff
path: root/app/Template/group/dissociate.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-16 20:19:07 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-16 20:19:07 -0400
commitabdf6f97800e7e838b5841820815385b183bab67 (patch)
tree75576da4a975561d0b93c7bcc7be94a385a4cd75 /app/Template/group/dissociate.php
parentde8ce875f4295e0b3bef20fcca051401f96816ef (diff)
Improve group controllers and views
Diffstat (limited to 'app/Template/group/dissociate.php')
-rw-r--r--app/Template/group/dissociate.php25
1 files changed, 10 insertions, 15 deletions
diff --git a/app/Template/group/dissociate.php b/app/Template/group/dissociate.php
index e1c60764..50ef6d61 100644
--- a/app/Template/group/dissociate.php
+++ b/app/Template/group/dissociate.php
@@ -1,17 +1,12 @@
-<section id="main">
- <div class="page-header">
- <ul>
- <li><i class="fa fa-users fa-fw"></i><?= $this->url->link(t('View all groups'), 'group', 'index') ?></li>
- <li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('View group members'), 'group', 'users', array('group_id' => $group['id'])) ?></li>
- </ul>
- </div>
- <div class="confirm">
- <p class="alert alert-info"><?= t('Do you really want to remove the user "%s" from the group "%s"?', $user['name'] ?: $user['username'], $group['name']) ?></p>
+<div class="page-header">
+ <h2><?= t('Remove user from group "%s"', $group['name']) ?></h2>
+</div>
+<div class="confirm">
+ <p class="alert alert-info"><?= t('Do you really want to remove the user "%s" from the group "%s"?', $user['name'] ?: $user['username'], $group['name']) ?></p>
- <div class="form-actions">
- <?= $this->url->link(t('Yes'), 'group', 'removeUser', array('group_id' => $group['id'], 'user_id' => $user['id']), true, 'btn btn-red') ?>
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'group', 'users', array('group_id' => $group['id'])) ?>
- </div>
+ <div class="form-actions">
+ <?= $this->url->link(t('Yes'), 'GroupListController', 'removeUser', array('group_id' => $group['id'], 'user_id' => $user['id']), true, 'btn btn-red') ?>
+ <?= t('or') ?>
+ <?= $this->url->link(t('cancel'), 'GroupListController', 'users', array('group_id' => $group['id']), false, 'close-popover') ?>
</div>
-</section>
+</div>