parent
0af652bd56
commit
a69244dc22
|
@ -19,10 +19,9 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= $this->translate('Name') ?></th>
|
<th><?= $this->translate('Name') ?></th>
|
||||||
<!-- <th>--><?//= $this->translate('Permissions') ?><!--</th>-->
|
|
||||||
<!-- <th>--><?//= $this->translate('Restrictions') ?><!--</th>-->
|
|
||||||
<th><?= $this->translate('Users') ?></th>
|
<th><?= $this->translate('Users') ?></th>
|
||||||
<th><?= $this->translate('Groups') ?></th>
|
<th><?= $this->translate('Groups') ?></th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -34,30 +33,8 @@
|
||||||
'role/edit',
|
'role/edit',
|
||||||
array('role' => $name),
|
array('role' => $name),
|
||||||
array('title' => sprintf($this->translate('Edit role %s'), $name))
|
array('title' => sprintf($this->translate('Edit role %s'), $name))
|
||||||
); ?>
|
) ?>
|
||||||
</td>
|
</td>
|
||||||
<!-- <td>--><?//= $this->escape($role->permissions, 0, 50) ?><!--</td>-->
|
|
||||||
<!-- <td>-->
|
|
||||||
<!-- --><?php
|
|
||||||
// // TODO(el): $role->without(...) or $role->shift(...) would be nice!
|
|
||||||
// $restrictions = clone $role;
|
|
||||||
// unset($restrictions['users']);
|
|
||||||
// unset($restrictions['groups']);
|
|
||||||
// unset($restrictions['permissions']);
|
|
||||||
// ?>
|
|
||||||
<!-- --><?php //if (! empty($restrictions)): ?>
|
|
||||||
<!-- <table>-->
|
|
||||||
<!-- <tbody>-->
|
|
||||||
<!-- --><?php //foreach ($restrictions as $restrictionName => $restriction): ?>
|
|
||||||
<!-- <tr>-->
|
|
||||||
<!-- <th>--><?//= $this->escape($restrictionName) ?><!--</th>-->
|
|
||||||
<!-- <td>--><?//= $this->escape($restriction) ?><!--</td>-->
|
|
||||||
<!-- </tr>-->
|
|
||||||
<!-- --><?php //endforeach ?>
|
|
||||||
<!-- </tbody>-->
|
|
||||||
<!-- </table>-->
|
|
||||||
<!-- --><?php //endif ?>
|
|
||||||
<!-- </td>-->
|
|
||||||
<td><?= $this->escape($role->users) ?></td>
|
<td><?= $this->escape($role->users) ?></td>
|
||||||
<td><?= $this->escape($role->groups) ?></td>
|
<td><?= $this->escape($role->groups) ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -69,7 +46,7 @@
|
||||||
'icon' => 'trash',
|
'icon' => 'trash',
|
||||||
'title' => sprintf($this->translate('Remove role %s'), $name)
|
'title' => sprintf($this->translate('Remove role %s'), $name)
|
||||||
)
|
)
|
||||||
); ?>
|
) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
Loading…
Reference in New Issue