default fade setting for songs.
This commit is contained in:
parent
12dbdf8f4c
commit
f8d3a38b2e
4 changed files with 36 additions and 12 deletions
|
@ -16,6 +16,16 @@ class Application_Form_Preferences extends Zend_Form
|
|||
'validators' => array('NotEmpty'),
|
||||
'value' => Application_Model_Preference::GetValue("station_name")
|
||||
));
|
||||
|
||||
// Add login element
|
||||
$this->addElement('text', 'stationDefaultFade', array(
|
||||
'class' => 'input_text',
|
||||
'label' => 'Default Fade:',
|
||||
'required' => false,
|
||||
'filters' => array('StringTrim'),
|
||||
'validators' => array(array('regex', false, array('/^[0-2][0-3]:[0-5][0-9]:[0-5][0-9](\.\d{1,6})?$/', 'messages' => 'enter a time 00:00:00{.000000}'))),
|
||||
'value' => Application_Model_Preference::GetValue("default_fade")
|
||||
));
|
||||
|
||||
$this->addElement('submit', 'submit', array(
|
||||
'class' => 'ui-button ui-state-default',
|
||||
|
@ -24,4 +34,4 @@ class Application_Form_Preferences extends Zend_Form
|
|||
));
|
||||
}
|
||||
}
|
||||
|
||||
///^[0-2][0-3]:[0-5][0-9]:[0-5][0-9]{.}[0-9]{0-6}/i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue