2012-12-11 17:40:57 +01:00
|
|
|
<div class="roles index">
|
2012-10-31 17:10:59 +01:00
|
|
|
<h2><?php echo __('Roles');?></h2>
|
2013-06-01 08:13:18 +02:00
|
|
|
<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">
|
2012-06-28 17:24:12 +02:00
|
|
|
<tr>
|
|
|
|
<th><?php echo $this->Paginator->sort('id');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('name');?></th>
|
2012-11-08 10:31:50 +01:00
|
|
|
<th><?php echo $this->Paginator->sort('permission', 'Permission');?></th>
|
2012-12-07 15:00:40 +01:00
|
|
|
<th><?php echo $this->Paginator->sort('perm_sync', 'Sync Actions');?></th>
|
2012-12-11 17:40:57 +01:00
|
|
|
<th><?php echo $this->Paginator->sort('perm_audit', 'Audit Actions');?></th>
|
2013-10-25 11:31:35 +02:00
|
|
|
<th><?php echo $this->Paginator->sort('perm_regexp', 'Regexp Actions');?></th>
|
2013-02-06 17:45:43 +01:00
|
|
|
<th><?php echo $this->Paginator->sort('perm_auth', 'Auth Key Access');?></th>
|
2014-01-21 16:59:21 +01:00
|
|
|
<th><?php echo $this->Paginator->sort('perm_tagger', 'Tag Editor');?></th>
|
2013-10-25 11:31:35 +02:00
|
|
|
<th><?php echo $this->Paginator->sort('perm_admin', 'Admin');?></th>
|
|
|
|
<th><?php echo $this->Paginator->sort('perm_site_admin', 'Site Admin');?></th>
|
2012-06-28 17:24:12 +02:00
|
|
|
<th class="actions"><?php echo __('Actions');?></th>
|
2012-12-19 03:33:09 +01:00
|
|
|
</tr><?php
|
2013-01-04 16:48:46 +01:00
|
|
|
foreach ($list as $item): ?>
|
2012-06-28 17:24:12 +02:00
|
|
|
<tr>
|
2013-06-01 08:13:18 +02:00
|
|
|
<td class="short"><?php echo $this->Html->link(h($item['Role']['id']), array('admin' => true, 'action' => 'edit', $item['Role']['id'])); ?> </td>
|
2013-06-18 12:27:59 +02:00
|
|
|
<td><?php echo h($item['Role']['name']); ?> </td>
|
2013-06-02 13:57:51 +02:00
|
|
|
<td class="short"><?php echo h($options[$item['Role']['permission']]); ?> </td>
|
2013-01-04 16:48:46 +01:00
|
|
|
<td class="short"><?php echo h($item['Role']['perm_sync']); ?> </td>
|
|
|
|
<td class="short"><?php echo h($item['Role']['perm_audit']); ?> </td>
|
2013-10-25 11:31:35 +02:00
|
|
|
<td class="short"><?php echo h($item['Role']['perm_regexp_access']); ?> </td>
|
2013-02-06 17:45:43 +01:00
|
|
|
<td class="short"><?php echo h($item['Role']['perm_auth']); ?> </td>
|
2014-01-21 16:59:21 +01:00
|
|
|
<td class="short"><?php echo h($item['Role']['perm_tagger']); ?> </td>
|
2013-10-25 11:31:35 +02:00
|
|
|
<td class="short"><?php echo h($item['Role']['perm_admin']); ?> </td>
|
|
|
|
<td class="short"><?php echo h($item['Role']['perm_site_admin']); ?> </td>
|
2013-06-03 14:44:31 +02:00
|
|
|
<td class="short action-links">
|
2013-06-01 08:13:18 +02:00
|
|
|
<?php echo $this->Html->link('', array('admin' => true, 'action' => 'edit', $item['Role']['id']), array('class' => 'icon-edit', 'title' => 'Edit')); ?>
|
|
|
|
<?php echo $this->Form->postLink('', array('admin' => true, 'action' => 'delete', $item['Role']['id']), array('class' => 'icon-trash', 'title' => 'Delete'), __('Are you sure you want to delete %s?', $item['Role']['name'])); ?>
|
2012-06-28 17:24:12 +02:00
|
|
|
</td>
|
2012-12-19 03:33:09 +01:00
|
|
|
</tr><?php
|
|
|
|
endforeach; ?>
|
2012-06-28 17:24:12 +02:00
|
|
|
</table>
|
|
|
|
<p>
|
2013-06-01 08:13:18 +02:00
|
|
|
<?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>
|
2012-06-28 17:24:12 +02:00
|
|
|
|
2013-06-01 08:13:18 +02:00
|
|
|
</div>
|
2013-10-24 16:41:42 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element('side_menu', array('menuList' => 'admin', 'menuItem' => 'indexRole'));
|
|
|
|
?>
|