CC-3093: SoundCloud preferences do not have email or password as required fields + firefox auto-fills the password field
- Make the form fields required - Append "Required" label to the fields - Disable autocomplete for the fields
This commit is contained in:
parent
161fa80d64
commit
d3df4b14d2
|
@ -42,9 +42,10 @@ class Application_Form_SoundcloudPreferences extends Zend_Form_SubForm
|
||||||
//SoundCloud Username
|
//SoundCloud Username
|
||||||
$this->addElement('text', 'SoundCloudUser', array(
|
$this->addElement('text', 'SoundCloudUser', array(
|
||||||
'class' => 'input_text',
|
'class' => 'input_text',
|
||||||
'label' => 'SoundCloud Email:',
|
'label' => 'SoundCloud Email',
|
||||||
'required' => false,
|
'required' => true,
|
||||||
'filters' => array('StringTrim'),
|
'filters' => array('StringTrim'),
|
||||||
|
'autocomplete' => 'off',
|
||||||
'value' => Application_Model_Preference::GetSoundCloudUser(),
|
'value' => Application_Model_Preference::GetSoundCloudUser(),
|
||||||
'decorators' => array(
|
'decorators' => array(
|
||||||
'ViewHelper'
|
'ViewHelper'
|
||||||
|
@ -54,9 +55,10 @@ class Application_Form_SoundcloudPreferences extends Zend_Form_SubForm
|
||||||
//SoundCloud Password
|
//SoundCloud Password
|
||||||
$this->addElement('password', 'SoundCloudPassword', array(
|
$this->addElement('password', 'SoundCloudPassword', array(
|
||||||
'class' => 'input_text',
|
'class' => 'input_text',
|
||||||
'label' => 'SoundCloud Password:',
|
'label' => 'SoundCloud Password',
|
||||||
'required' => false,
|
'required' => true,
|
||||||
'filters' => array('StringTrim'),
|
'filters' => array('StringTrim'),
|
||||||
|
'autocomplete' => 'off',
|
||||||
'value' => Application_Model_Preference::GetSoundCloudPassword(),
|
'value' => Application_Model_Preference::GetSoundCloudPassword(),
|
||||||
'decorators' => array(
|
'decorators' => array(
|
||||||
'ViewHelper'
|
'ViewHelper'
|
||||||
|
|
|
@ -40,7 +40,9 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudUser-label" class="block-display">
|
<dt id="SoundCloudUser-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudUser"><?php echo $this->element->getElement('SoundCloudUser')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudUser"><?php echo $this->element->getElement('SoundCloudUser')->getLabel() ?>
|
||||||
|
<span class="info-text-small">(Required)</span> :
|
||||||
|
</label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudUser-element" class="block-display">
|
<dd id="SoundCloudUser-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('SoundCloudUser') ?>
|
<?php echo $this->element->getElement('SoundCloudUser') ?>
|
||||||
|
@ -53,7 +55,9 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="SoundCloudPassword-label" class="block-display">
|
<dt id="SoundCloudPassword-label" class="block-display">
|
||||||
<label class="optional" for="SoundCloudPassword"><?php echo $this->element->getElement('SoundCloudPassword')->getLabel() ?></label>
|
<label class="optional" for="SoundCloudPassword"><?php echo $this->element->getElement('SoundCloudPassword')->getLabel() ?>
|
||||||
|
<span class="info-text-small">(Required)</span> :
|
||||||
|
</label>
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="SoundCloudPassword-element" class="block-display">
|
<dd id="SoundCloudPassword-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('SoundCloudPassword') ?>
|
<?php echo $this->element->getElement('SoundCloudPassword') ?>
|
||||||
|
|
Loading…
Reference in New Issue