2013-02-04 17:55:35 +01:00
|
|
|
<div class="users form">
|
2013-05-13 15:27:11 +02:00
|
|
|
<?php echo $this->Form->create('User', array('novalidate'=>true));?>
|
2013-02-04 17:55:35 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend><?php echo __('Admin Add 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')));
|
2013-10-03 11:45:27 +02:00
|
|
|
if ($isSiteAdmin) {
|
2013-03-06 11:34:22 +01:00
|
|
|
echo $this->Form->input('org', array('label' => 'Organisation'));
|
|
|
|
}
|
2013-05-31 15:42:53 +02:00
|
|
|
echo $this->Form->input('role_id', array('label' => 'Role', 'div' => 'input clear'));
|
2013-02-19 15:37:35 +01:00
|
|
|
echo $this->Form->input('authkey', array('value' => $authkey, 'readonly' => 'readonly'));
|
2013-02-04 17:55:35 +01:00
|
|
|
echo $this->Form->input('nids_sid');
|
2013-05-31 15:42:53 +02:00
|
|
|
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'));
|
|
|
|
|
2013-02-04 17:55:35 +01:00
|
|
|
?>
|
|
|
|
</fieldset>
|
2013-05-31 15:42:53 +02:00
|
|
|
<?php echo $this->Form->button(__('Submit'), array('class' => 'btn btn-primary'));
|
|
|
|
echo $this->Form->end();?>
|
|
|
|
</div>
|
2013-10-24 16:41:42 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element('side_menu', array('menuList' => 'admin', 'menuItem' => 'addUser'));
|
2013-10-25 10:39:18 +02:00
|
|
|
?>
|