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

refs #19641 [fid_bbi] show edit links in user overview table again

* introduce BBI specific admin/list template
parent 86ade753
No related merge requests found
<!-- fid_bbi - user - admin - list -->
<?php
/**
* copied from fid theme
* replaces fa icons by SVG
*/
/* #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->flashmessages() ?>
<?php if (!empty($this->list)): ?>
<table class="fid fid-admin table user-table table-striped">
<?php /* #16383 */ ?>
<thead>
<tr>
<td><!-- empty cell --></td>
<th>#</th>
<?php foreach ($fields as $fieldname): ?>
<th><?=$this->translate('fid::'.$fieldname)?></th>
<?php endforeach; ?>
</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?>"><?=$this->icon('pen')?><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 /* #16383 */ ?>
</tbody>
</table>
<a href="<?=$this->url('fid/admin/exportList')?>" class="btn btn-primary" target="_blank"><?=$this->icon('download')?> <?=$this->translate('fid::user_list_export')?></a>
<?php else: ?>
<?= $this->translate('fid::user_list_empty') ?>
<?php endif; ?>
<!-- fid_bbi - user - admin - list - END -->
\ No newline at end of file
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