Form: Only add the ViewHelper decorator for hidden form fields
refs #5543
This commit is contained in:
parent
1c38fdd9c8
commit
209c084f51
|
@ -916,12 +916,16 @@ class Form extends Zend_Form
|
|||
|| ($type === 'button' && isset($options['type']) && $options['type'] === 'submit'))
|
||||
) {
|
||||
array_splice($options['decorators'], 1, 0, array(array('Spinner', array('separator' => ''))));
|
||||
} elseif ($type === 'hidden') {
|
||||
$options['decorators'] = array('ViewHelper');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$options = array('decorators' => static::$defaultElementDecorators);
|
||||
if ($type === 'submit') {
|
||||
array_splice($options['decorators'], 1, 0, array(array('Spinner', array('separator' => ''))));
|
||||
} elseif ($type === 'hidden') {
|
||||
$options['decorators'] = array('ViewHelper');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,10 +12,6 @@ input {
|
|||
}
|
||||
}
|
||||
|
||||
.control-group ~ input[type="hidden"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input.search {
|
||||
padding-left: 20px;
|
||||
background: @gray-lightest url('../img/icons/search.png') no-repeat 2px;
|
||||
|
|
Loading…
Reference in New Issue