summaryrefslogtreecommitdiff
path: root/app/Template/group
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-12 22:19:43 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-12 22:19:43 -0500
commitfde0c0bad5058e65ec1a676da6b0d0f2511e6a85 (patch)
treec16565ea85a859e2dd65225bc535b5df13a8dd9a /app/Template/group
parentdfd0c4e48d339e5a8ae6365dfe2b9c9c2edca7e7 (diff)
Add dropdown menu for column 'Actions' in tables
Diffstat (limited to 'app/Template/group')
-rw-r--r--app/Template/group/index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Template/group/index.php b/app/Template/group/index.php
index 4aea0873..d111b5d9 100644
--- a/app/Template/group/index.php
+++ b/app/Template/group/index.php
@@ -8,12 +8,12 @@
<?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('There is no group.') ?></p>
<?php else: ?>
- <table class="table-small">
+ <table class="table-small table-fixed">
<tr>
<th class="column-5"><?= $paginator->order(t('Id'), 'id') ?></th>
<th class="column-20"><?= $paginator->order(t('External Id'), 'external_id') ?></th>
<th><?= $paginator->order(t('Name'), 'name') ?></th>
- <th class="column-20"><?= t('Actions') ?></th>
+ <th class="column-5"><?= t('Actions') ?></th>
</tr>
<?php foreach ($paginator->getCollection() as $group): ?>
<tr>
@@ -27,12 +27,15 @@
<?= $this->e($group['name']) ?>
</td>
<td>
+ <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><?= $this->url->link(t('Add group member'), 'group', 'associate', array('group_id' => $group['id'])) ?></li>
<li><?= $this->url->link(t('Members'), 'group', 'users', array('group_id' => $group['id'])) ?></li>
<li><?= $this->url->link(t('Edit'), 'group', 'edit', array('group_id' => $group['id'])) ?></li>
<li><?= $this->url->link(t('Remove'), 'group', 'confirm', array('group_id' => $group['id'])) ?></li>
</ul>
+ </div>
</td>
</tr>
<?php endforeach ?>