color isn't required

This commit is contained in:
Naomi 2011-01-21 14:58:23 -05:00
parent 49cbee9db7
commit edc7c03824

View file

@ -8,17 +8,13 @@ class Application_Form_AddShowStyle extends Zend_Form_SubForm
// Add show background-color input // Add show background-color input
$this->addElement('text', 'add_show_background_color', array( $this->addElement('text', 'add_show_background_color', array(
'label' => 'Background Colour:', 'label' => 'Background Colour:',
'required' => true, 'filters' => array('StringTrim')
'filters' => array('StringTrim'),
'validators' => array('NotEmpty')
)); ));
// Add show color input // Add show color input
$this->addElement('text', 'add_show_color', array( $this->addElement('text', 'add_show_color', array(
'label' => 'Text Colour', 'label' => 'Text Colour',
'required' => true, 'filters' => array('StringTrim')
'filters' => array('StringTrim'),
'validators' => array('NotEmpty')
)); ));
} }