Form->create('User', array('novalidate'=>true));?>
Form->input('email'); ?>
Form->input('external_auth_required', array('type' => 'checkbox', 'label' => $userType . ' user')); endif; ?>
Form->input('external_auth_key', array('type' => 'text')); ?>
Form->input('enable_password', array('type' => 'checkbox', 'label' => __('Set password'))); ?>
' . __('Length') . ': ' . h($length) . '
'; $passwordPopover .= '' . __('Complexity') . ': ' . h($complexity); echo $this->Form->input('password', array( 'label' => __('Password') . ' ' )); echo $this->Form->input('confirm_password', array('type' => 'password', 'div' => array('class' => 'input password required'))); ?>
Form->input('org_id', array( 'options' => $orgs, 'label' => __('Organisation'), 'empty' => __('Choose organisation'), )); } $roleOptions = array('label' => __('Role')); // We need to make sure that the default role is actually available to the admin (for an org admin it might not be) if (!empty($default_role_id) && isset($roles[intval($default_role_id)])) { $roleOptions['default'] = $default_role_id; } echo $this->Form->input('role_id', $roleOptions); echo $this->Form->input('authkey', array('value' => $authkey, 'readonly' => 'readonly', 'div' => 'input clear')); echo $this->Form->input('nids_sid'); ?> Form->input('gpgkey', array('label' => __('GnuPG key'), 'div' => 'clear', 'class' => 'input-xxlarge', 'placeholder' => __('Paste the user\'s GnuPG key here or try to retrieve it from the CIRCL key server by clicking on "Fetch GnuPG key" below.'))); ?>
Form->input('certif_public', array('label' => __('SMIME key'), 'div' => 'clear', 'class' => 'input-xxlarge', 'placeholder' => __('Paste the user\'s SMIME public key in PEM format here.'))); echo $this->Form->input('autoalert', array( 'label' => __('Receive alerts when events are published'), 'type' => 'checkbox', 'checked' => isset($this->request->data['User']['autoalert']) ? $this->request->data['User']['autoalert'] : true )); echo $this->Form->input('contactalert', array( 'label' => __('Receive alerts from "contact reporter" requests'), 'type' => 'checkbox', 'checked' => isset($this->request->data['User']['contactalert']) ? $this->request->data['User']['contactalert'] : true )); ?>
Form->input('disabled', array('type' => 'checkbox', 'label' => __('Disable this user account'))); echo $this->Form->input('notify', array( 'label' => __('Send credentials automatically'), 'type' => 'checkbox', 'checked' => isset($this->request->data['User']['notify']) ? $this->request->data['User']['notify'] : true )); ?>
Form->button(__('Submit'), array('class' => 'btn btn-primary')); echo $this->Form->end();?>
element('/genericElements/SideMenu/side_menu', array('menuList' => 'admin', 'menuItem' => 'addUser')); ?>