mirror of https://github.com/MISP/MISP
31 lines
1.9 KiB
PHP
Executable File
31 lines
1.9 KiB
PHP
Executable File
<div class="users form">
|
|
<?php echo $this->Form->create('User', array('novalidate' => true));?>
|
|
<fieldset>
|
|
<legend><?php echo __('Edit User'); ?></legend>
|
|
<?php
|
|
echo $this->Form->input('email');
|
|
echo $this->Form->input('password');
|
|
echo $this->Form->input('confirm_password', array('type' => 'password', 'div' => array('class' => 'input password required')));
|
|
if ($isAdmin) echo $this->Form->input('org', array('label' => 'Organisation', 'div' => 'input clear'));
|
|
else echo $this->Form->input('org', array('disabled' => 'disabled', 'label' => 'Organisation', 'div' => 'input clear'));
|
|
if ($isAdmin) echo $this->Form->input('role_id');
|
|
else echo $this->Form->input('role_id', array('disabled' => 'disabled')); // TODO ACL, check, My Profile not edit role_id.
|
|
echo $this->Form->input('nids_sid');
|
|
echo $this->Form->input('gpgkey', array('label' => 'GPG key', 'div' => 'clear', 'class' => 'input-xxlarge'));
|
|
echo $this->Form->input('autoalert', array('label' => 'Receive alerts when events are published'));
|
|
echo $this->Form->input('contactalert', array('label' => 'Receive alerts from "contact reporter" requests'));
|
|
?>
|
|
</fieldset>
|
|
<?php echo $this->Form->button(__('Submit'), array('class' => 'btn btn-primary'));
|
|
echo $this->Form->end();?>
|
|
</div>
|
|
<div class="actions">
|
|
<ul class="nav nav-list">
|
|
<li><?php echo $this->Html->link(__('News', true), array('controller' => 'users', 'action' => 'news')); ?> </li>
|
|
<li><?php echo $this->Html->link(__('My Profile', true), array('controller' => 'users', 'action' => 'view', 'me')); ?> </li>
|
|
<li><?php echo $this->Html->link(__('Members List', true), array('controller' => 'users', 'action' => 'memberslist')); ?> </li>
|
|
<li><?php echo $this->Html->link(__('User Guide', true), array('controller' => 'pages', 'action' => 'display', 'documentation')); ?> </li>
|
|
<li><?php echo $this->Html->link(__('Terms & Conditions', true), array('controller' => 'users', 'action' => 'terms')); ?> </li>
|
|
</ul>
|
|
</div>
|