2011-11-26 10:45:31 +01:00
<div class="users form">
2013-05-13 14:27:40 +02:00
<?php echo $this->Form->create('User', array('novalidate' => true));?>
2018-07-20 09:29:50 +02:00
<fieldset>
<legend><?php echo __('Edit My Profile'); ?></legend>
<?php
echo $this->Form->input('email');
?>
<div class="input clear"></div>
<?php
2019-03-21 15:59:02 +01:00
$passwordPopover = '<span class=\"blue bold\">' . __('Length') .'</span>: ' . h($length) . '<br />';
$passwordPopover .= '<span class=\"blue bold\">' . __('Complexity') .'</span>: ' . h($complexity);
2018-07-20 09:29:50 +02:00
echo $this->Form->input('password', array(
2019-03-21 15:59:02 +01:00
'label' => __('Password') . ' <span id = "PasswordPopover" class="icon-info-sign" ></span>'
2018-07-20 09:29:50 +02:00
));
echo $this->Form->input('confirm_password', array('type' => 'password', 'div' => array('class' => 'input password required')));
?>
<div class="input clear"></div>
<?php
echo $this->Form->input('nids_sid');
?>
<div class="input clear"></div>
<?php
2019-09-04 18:09:49 +02:00
echo $this->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.')));
2018-07-20 09:29:50 +02:00
?>
<div class="clear"><span role="button" tabindex="0" aria-label="<?php echo __('Fetch GnuPG key');?>" onClick="lookupPGPKey('UserEmail');" class="btn btn-inverse" style="margin-bottom:10px;"><?php echo __('Fetch GnuPG key');?></span></div>
<?php
if (Configure::read('SMIME.enabled')) echo $this->Form->input('certif_public', array('label' => __('SMIME Public certificate (PEM format)'), 'div' => 'clear', 'class' => 'input-xxlarge'));
echo $this->Form->input('autoalert', array('label' => __('Receive alerts when events are published'), 'type' => 'checkbox'));
echo $this->Form->input('contactalert', array('label' => __('Receive alerts from "contact reporter" requests'), 'type' => 'checkbox'));
?>
</fieldset>
<div style="border-bottom: 1px solid #e5e5e5;width:100%;"> </div>
<div class="clear" style="margin-top:10px;">
2017-07-12 15:38:34 +02:00
<?php
2018-07-20 09:29:50 +02:00
if (Configure::read('Security.require_password_confirmation')) {
echo $this->Form->input('current_password', array('type' => 'password', 'div' => false, 'class' => 'input password required', 'label' => __('Confirm with your current password')));
}
2017-07-12 15:38:34 +02:00
?>
2018-07-20 09:29:50 +02:00
</div>
2017-07-12 15:38:34 +02:00
<?php
2018-07-20 09:29:50 +02:00
echo $this->Form->button(__('Submit'), array('class' => 'btn btn-primary'));
echo $this->Form->end();
2017-07-12 15:38:34 +02:00
?>
2013-05-31 15:42:53 +02:00
</div>
2016-06-04 01:10:45 +02:00
<?php
2018-07-20 09:29:50 +02:00
$user['User']['id'] = $id;
2019-02-13 14:45:01 +01:00
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'globalActions', 'menuItem' => 'edit', 'user' => $user));
2013-10-24 16:41:42 +02:00
?>
2017-04-11 10:04:07 +02:00
<script type="text/javascript">
2018-07-20 09:29:50 +02:00
$(document).ready(function() {
$('#PasswordPopover').popover("destroy").popover({
placement: 'right',
html: 'true',
trigger: 'hover',
content: '<?php echo $passwordPopover; ?>'
});
});
2017-04-11 10:04:07 +02:00
</script>
<?php echo $this->Js->writeBuffer();