2013-02-04 17:55:35 +01:00
|
|
|
<div class="users form">
|
2013-05-13 14:27:40 +02:00
|
|
|
<?php echo $this->Form->create('User', array('novalidate'=>true));?>
|
2013-02-04 17:55:35 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend><?php echo __('Admin 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')));
|
2013-03-06 11:34:22 +01:00
|
|
|
if ($currentOrg == 'ADMIN') {
|
|
|
|
echo $this->Form->input('org', array('label' => 'Organisation'));
|
|
|
|
}
|
2013-02-04 17:55:35 +01:00
|
|
|
echo $this->Form->input('role_id', array('label' => 'Role')); // TODO ACL, User edit role_id.
|
2013-03-06 11:34:22 +01:00
|
|
|
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'));
|
|
|
|
echo $this->Form->input('authkey', array('disabled' => 'disabled', 'label' => 'Authentication key'));
|
2013-02-04 17:55:35 +01:00
|
|
|
echo $this->Html->link('reset', array('controller' => 'users', 'action' => 'resetauthkey', $currentId));
|
|
|
|
echo ('<br><br>');
|
|
|
|
echo $this->Form->input('nids_sid');
|
2013-03-06 11:34:22 +01:00
|
|
|
echo $this->Form->input('termsaccepted', array('label' => 'Terms accepted'));
|
2013-02-04 17:55:35 +01:00
|
|
|
echo $this->Form->input('change_pw', array('type' => 'checkbox', 'label' => 'Change Password'));
|
2013-03-06 11:34:22 +01:00
|
|
|
echo $this->Form->input('newsread', array('label' => 'News read (date)'));
|
|
|
|
echo $this->Form->input('gpgkey', array('label' => 'GPG key'));
|
2013-02-04 17:55:35 +01:00
|
|
|
?>
|
|
|
|
</fieldset>
|
|
|
|
<?php echo $this->Form->end(__('Submit'));?>
|
|
|
|
</div>
|