mirror of https://github.com/MISP/MISP
parent
7eb2c0f4df
commit
94926312d9
|
@ -1,8 +1,3 @@
|
|||
<?php
|
||||
$buttonAddStatus = $isAclAdd ? 'button_on':'button_off';
|
||||
$buttonModifyStatus = ($isAclModify || $isAclModifyOrg) ? 'button_on':'button_off';
|
||||
$buttonPublishStatus = $isAclPublish ? 'button_on':'button_off';
|
||||
?>
|
||||
<div class="users index">
|
||||
<h2><?php echo __('Users');?></h2>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
|
@ -40,11 +35,11 @@ $buttonPublishStatus = $isAclPublish ? 'button_on':'button_off';
|
|||
<td class="short" onclick="document.location ='<?php echo $this->Html->url(array('admin' => true, 'action' => 'view', $user['User']['id']), true);?>';">
|
||||
<?php echo h($user['User']['newsread']); ?> </td>
|
||||
<td class="actions">
|
||||
<?php if (($isAclModifyOrg && ($user['User']['org'] == $me['org'])) || ('1' == $me['id'])) {
|
||||
echo $this->Html->link(__('Edit'), array('admin' => true, 'action' => 'edit', $user['User']['id']), null);
|
||||
echo $this->Form->postLink(__('Delete'), array('admin' => true, 'action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id']));
|
||||
}?>
|
||||
<?php echo $this->Html->link(__('View'), array('admin' => true, 'action' => 'view', $user['User']['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Edit'), array('admin' => true, 'action' => 'edit', $user['User']['id']), $isAclModify || ($isAclModifyOrg && ($user['User']['org'] == $me['org'])) ? null : array('class' => $buttonModifyStatus)); ?>
|
||||
<?php if ($isAclModify || ($isAclModifyOrg && $user['User']['org'] == $me['org'])) echo $this->Form->postLink(__('Delete'), array('admin' => true, 'action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id']));
|
||||
else echo $this->Html->link(__('Delete'), array('admin' => true, 'action' => 'delete', $user['User']['id']), array('class' => $buttonModifyStatus));
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -115,12 +115,12 @@ $buttonModifyStatus = $mayModify ? 'button_on':'button_off';
|
|||
<td><?php echo $event['published'];?></td>
|
||||
<td><?php echo $event['uuid'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View'), array('controller' => 'events', 'action' => 'view', $event['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Edit'), array('controller' => 'events', 'action' => 'edit', $event['id']), array('class' => $buttonModifyStatus)); ?>
|
||||
<?php
|
||||
if ($mayModify) echo $this->Form->postLink(__('Delete'), array('controller' => 'events', 'action' => 'delete', $event['id']), null, __('Are you sure you want to delete # %s?', $event['id']));
|
||||
else echo $this->Html->link(__('Delete'), array('controller' => 'events', 'action' => 'delete', $event['id']), array('class' => $buttonModifyStatus));
|
||||
?>
|
||||
<?php echo $this->Html->link(__('View'), array('controller' => 'events', 'action' => 'view', $event['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="users view">
|
||||
<div class="actions" style="float:right;">
|
||||
<ul><li><?php echo $this->Html->link(__('Edit Profile', true), array('action' => 'edit', $user['User']['id'])); ?> </li></ul>
|
||||
<ul><li><?php if ($isAclModify) echo $this->Html->link(__('Edit Profile', true), array('action' => 'edit', $user['User']['id'])); ?> </li></ul>
|
||||
</div>
|
||||
<h2><?php echo __('User');?></h2>
|
||||
<dl>
|
||||
|
@ -54,8 +54,7 @@
|
|||
</div>
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('Edit User', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('Delete User', true), array('action' => 'delete', $user['User']['id']), array('class' => 'button_off')); ?> </li>
|
||||
<li><?php if ($isAclModify) echo $this->Html->link(__('Edit User', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
|
||||
<li> </li>
|
||||
<?php echo $this->element('actions_menu'); ?>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue