Skip to content
Snippets Groups Projects
Commit c4eced1a authored by Dorian Merz's avatar Dorian Merz
Browse files

Merge branch 'instance/fid' into instance/fid_bbi

parents c4f0b629 d0d09bd6
No related merge requests found
This diff is collapsed.
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
$permissions = []; $permissions = [];
foreach ($config['Admin']['permission_options'] ?? [] as $perm) { foreach ($config['Admin']['permission_options'] ?? [] as $perm) {
$state = $user->getPermissions()[$perm]; $state = $user->getPermissions()[$perm];
$permissions[$perm] = $this->escapeHtml($perm).' ('.$this->escapeHtml($state).')'; /* #16383: set requested as bold text - GG */
$state = $state === 'requested' ? '<strong>'.$this->escapeHtml($state).'</strong>' : $state;
$permissions[$perm] = $this->escapeHtml($perm)." ($state)";
} }
foreach ($this->fields as $field): foreach ($this->fields as $field):
......
<!-- fid - user - admin - list --> <!-- fid - user - admin - list -->
<?php
/* #16383: added tablesorter - GG*/
$this->headScript()->appendFile('jquery.tablesorter.min.js');
$script = <<<JS
$(document).ready(function() {
// Tablesorter
$('table').tablesorter({
sortList: [[0,1]],
// widgets: ['zebra', 'filter']
});
});
JS;
echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');
?>
<?=$this->translate('Users')?> <?=$this->translate('Users')?>
<?= $this->flashmessages() ?> <?= $this->flashmessages() ?>
<?php if (!empty($this->list)): ?> <?php if (!empty($this->list)): ?>
<table class="fid fid-admin table user-table table-striped"> <table class="fid fid-admin table user-table table-striped">
<tr> <?php /* #16383 */ ?>
<td><!-- empty cell --></td> <thead>
<th>#</th> <tr>
<?php foreach ($fields as $fieldname): ?> <td><!-- empty cell --></td>
<th><?=$this->translate('fid::'.$fieldname)?></th> <th>#</th>
<?php endforeach; ?> <?php foreach ($fields as $fieldname): ?>
</tr> <th><?=$this->translate('fid::'.$fieldname)?></th>
<?php foreach ($list as $id => $user):?> <?php endforeach; ?>
<?php $tooltip = $this->translate('fid::user_edit',['%%userid%%' => $id]); ?> </tr>
<?php /* #16383 */ ?>
</thead>
<tbody>
<?php foreach ($list as $id => $user):?>
<?php $tooltip = $this->translate('fid::user_edit',['%%userid%%' => $id]); ?>
<tr><td><a href="<?=$this->url('fid/admin/edit',['userid' => $id])?>" title="<?=$tooltip?>"><i class="fa fa-pencil-square-o"></i><span class="sr-only"><?=$tooltip?></span></a></td><th><?=$id?></th><?= $this->render('fid/admin/list-entry',['user' => $user,'fields'=>$fields, 'config' => $config]) ?></tr> <tr><td><a href="<?=$this->url('fid/admin/edit',['userid' => $id])?>" title="<?=$tooltip?>"><i class="fa fa-pencil-square-o"></i><span class="sr-only"><?=$tooltip?></span></a></td><th><?=$id?></th><?= $this->render('fid/admin/list-entry',['user' => $user,'fields'=>$fields, 'config' => $config]) ?></tr>
<?php endforeach; ?> <?php endforeach; ?>
<?php /* #16383 */ ?>
</tbody>
</table> </table>
<a href="<?=$this->url('fid/admin/exportList')?>" class="btn btn-primary" target="_blank"><i class="fa fa-download"></i> <?=$this->translate('fid::user_list_export')?></a> <a href="<?=$this->url('fid/admin/exportList')?>" class="btn btn-primary" target="_blank"><i class="fa fa-download"></i> <?=$this->translate('fid::user_list_export')?></a>
<?php else: ?> <?php else: ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment