mirror of https://github.com/MISP/MISP
64 lines
3.4 KiB
PHP
64 lines
3.4 KiB
PHP
<div class="roles index">
|
|
<h2><?php echo __('Roles');?></h2>
|
|
<div class="pagination">
|
|
<ul>
|
|
<?php
|
|
$this->Paginator->options(array(
|
|
'update' => '.span12',
|
|
'evalScripts' => true,
|
|
'before' => '$(".progress").show()',
|
|
'complete' => '$(".progress").hide()',
|
|
));
|
|
|
|
echo $this->Paginator->prev('« ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
|
|
echo $this->Paginator->next(__('next') . ' »', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
?>
|
|
</ul>
|
|
</div>
|
|
<table class="table table-striped table-hover table-condensed">
|
|
<tr>
|
|
<th><?php echo $this->Paginator->sort('id');?></th>
|
|
<th><?php echo $this->Paginator->sort('name');?></th>
|
|
<th><?php echo $this->Paginator->sort('permission', 'Permission');?></th>
|
|
<th><?php echo $this->Paginator->sort('perm_sync', 'Sync Actions');?></th>
|
|
<th><?php echo $this->Paginator->sort('perm_audit', 'Audit Actions');?></th>
|
|
<th><?php echo $this->Paginator->sort('perm_regexp', 'Regexp Actions');?></th>
|
|
<th><?php echo $this->Paginator->sort('perm_auth', 'Auth Key Access');?></th>
|
|
<th><?php echo $this->Paginator->sort('perm_admin', 'Administration Actions');?></th>
|
|
<th><?php echo $this->Paginator->sort('perm_site_admin', 'Site Admin');?></th>
|
|
</tr><?php
|
|
foreach ($list as $item): ?>
|
|
<tr>
|
|
<td class="short"><?php echo h($item['Role']['id']); ?> </td>
|
|
<td><?php echo h($item['Role']['name']); ?> </td>
|
|
<td class="short"><?php echo h($options[$item['Role']['permission']]); ?> </td>
|
|
<td class="short"><?php echo h($item['Role']['perm_sync']); ?> </td>
|
|
<td class="short"><?php echo h($item['Role']['perm_audit']); ?> </td>
|
|
<td class="short"><?php echo h($item['Role']['perm_regexp_access']); ?> </td>
|
|
<td class="short"><?php echo h($item['Role']['perm_auth']); ?> </td>
|
|
<td class="short"><?php echo h($item['Role']['perm_admin']); ?> </td>
|
|
<td class="short"><?php echo h($item['Role']['perm_site_admin']); ?> </td>
|
|
</tr><?php
|
|
endforeach; ?>
|
|
</table>
|
|
<p>
|
|
<?php
|
|
echo $this->Paginator->counter(array(
|
|
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
|
|
));
|
|
?>
|
|
</p>
|
|
<div class="pagination">
|
|
<ul>
|
|
<?php
|
|
echo $this->Paginator->prev('« ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
|
|
echo $this->Paginator->next(__('next') . ' »', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
echo $this->element('side_menu', array('menuList' => 'globalActions', 'menuItem' => 'roles'));
|
|
?>
|