mirror of https://github.com/MISP/MISP
chg: users autoalert/contactalert not empty & input style checkbox forced
parent
47dddd3b3b
commit
50dc59fb52
|
@ -90,7 +90,7 @@ class User extends AppModel {
|
|||
'boolean' => array(
|
||||
'rule' => array('boolean'),
|
||||
//'message' => 'Your custom message here',
|
||||
'allowEmpty' => true,
|
||||
//'allowEmpty' => false,
|
||||
'required' => false,
|
||||
//'last' => false, // Stop validation after this rule
|
||||
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
||||
|
@ -100,7 +100,7 @@ class User extends AppModel {
|
|||
'boolean' => array(
|
||||
'rule' => array('boolean'),
|
||||
//'message' => 'Your custom message here',
|
||||
'allowEmpty' => true,
|
||||
//'allowEmpty' => false,
|
||||
'required' => false,
|
||||
//'last' => false, // Stop validation after this rule
|
||||
//'on' => 'create', // Limit validation to 'create' or 'update' operations
|
||||
|
|
|
@ -63,8 +63,8 @@
|
|||
<div class="clear"><span onClick="lookupPGPKey('UserEmail');" class="btn btn-inverse" style="margin-bottom:10px;">Fetch GPG key</span></div>
|
||||
<?php
|
||||
if (Configure::read('SMIME.enabled')) echo $this->Form->input('certif_public', array('label' => 'Public certificate (Encryption -- PEM format)', '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'));
|
||||
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'));
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
<?php
|
||||
|
|
|
@ -64,8 +64,8 @@
|
|||
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('termsaccepted', array('label' => 'Terms accepted'));
|
||||
echo $this->Form->input('change_pw', array('type' => 'checkbox', 'label' => 'Change Password'));
|
||||
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('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'));
|
||||
|
||||
echo $this->Html->link('Reset Auth Key', array('controller' => 'users', 'action' => 'resetauthkey', $currentId));
|
||||
?>
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
<div class="clear"><span onClick="lookupPGPKey('UserEmail');" class="btn btn-inverse" style="margin-bottom:10px;">Fetch GPG 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'));
|
||||
echo $this->Form->input('contactalert', array('label' => 'Receive alerts from "contact reporter" requests'));
|
||||
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>
|
||||
<?php echo $this->Form->button(__('Submit'), array('class' => 'btn btn-primary'));
|
||||
|
|
Loading…
Reference in New Issue