Make user ID a sortable column in user management

This commit is contained in:
Dj Padzensky 2016-04-11 11:47:13 -07:00
parent 9f0166502b
commit a54f19424e
1 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,7 @@
<?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>
@ -26,7 +27,9 @@
<?php foreach ($paginator->getCollection() as $user): ?>
<tr>
<td>
<?= '#'.$user['id'] ?>&nbsp;
<?= '#'.$user['id'] ?>
</td>
<td>
<?= $this->url->link($this->text->e($user['username']), 'user', 'show', array('user_id' => $user['id'])) ?>
</td>
<td>