MISP/app/View/Roles/view.ctp

56 lines
1.7 KiB
PHP

<?php echo $this->element('bread_crumbs'); ?>
<div class="roles view">
<h2><?php echo __('Role');?></h2>
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo $role['Role']['id']; ?>
&nbsp;
</dd>
<dt><?php echo __('Name'); ?></dt>
<dd>
<?php echo h($role['Role']['name']); ?>
&nbsp;
</dd>
<dt><?php echo __('Add'); ?></dt>
<dd>
<?php echo h($role['Role']['perm_add']); ?>
&nbsp;
</dd>
<dt><?php echo __('Modify'); ?></dt>
<dd>
<?php echo h($role['Role']['perm_modify']); ?>
&nbsp;
</dd>
<dt><?php echo __('Publish'); ?></dt>
<dd>
<?php echo h($role['Role']['perm_publish']); ?>
&nbsp;
</dd>
<dt><?php echo __('Full'); ?></dt>
<dd>
<?php echo h($role['Role']['perm_full']); ?>
&nbsp;
</dd>
<dt><?php echo __('Auth'); ?></dt>
<dd>
<?php echo h($role['Role']['perm_auth']); ?>
&nbsp;
</dd>
</dl>
</div>
<div class="actions <?php echo $debugMode;?>">
<ul class="nav nav-list">
<li><?php echo $this->Html->link('New User', array('controller' => 'users', 'action' => 'add', 'admin' => true)); ?> </li>
<li><?php echo $this->Html->link('List Users', array('controller' => 'users', 'action' => 'index', 'admin' => true)); ?> </li>
<li class="divider"></li>
<?php if ($isSiteAdmin): ?>
<li><?php echo $this->Html->link('New Role', array('controller' => 'roles', 'action' => 'add', 'admin' => true)); ?> </li>
<?php endif; ?>
<li><?php echo $this->Html->link('List Roles', array('controller' => 'roles', 'action' => 'index', 'admin' => true)); ?> </li>
<?php if ($isSiteAdmin): ?>
<li class="divider"></li>
<li><?php echo $this->Html->link('Contact users', array('controller' => 'users', 'action' => 'email', 'admin' => true)); ?> </li>
<?php endif; ?>
</ul>
</div>