2011-01-21 00:30:53 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Application_Form_AddShowWhat extends Zend_Form_SubForm
|
|
|
|
{
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
// Add name element
|
|
|
|
$this->addElement('text', 'add_show_name', array(
|
|
|
|
'label' => 'Name:',
|
2011-01-28 23:37:31 +01:00
|
|
|
'class' => 'input_text',
|
2011-01-21 00:30:53 +01:00
|
|
|
'required' => true,
|
|
|
|
'filters' => array('StringTrim'),
|
|
|
|
'validators' => array('NotEmpty')
|
|
|
|
));
|
|
|
|
|
2011-01-31 02:11:18 +01:00
|
|
|
$nameInput = $this->getElement('add_show_name');
|
2011-01-28 23:37:31 +01:00
|
|
|
|
2011-01-31 02:11:18 +01:00
|
|
|
$nameInput->setDecorators(array(array('ViewScript', array(
|
|
|
|
'viewScript' => 'form/add-show-block.phtml',
|
|
|
|
'class' => 'block-display'
|
2011-01-28 23:37:31 +01:00
|
|
|
))));
|
|
|
|
|
|
|
|
|
2011-01-21 00:30:53 +01:00
|
|
|
// Add the description element
|
|
|
|
$this->addElement('textarea', 'add_show_description', array(
|
|
|
|
'label' => 'Description:',
|
|
|
|
'required' => false,
|
2011-01-28 23:37:31 +01:00
|
|
|
'class' => 'input_text_area'
|
2011-01-21 00:30:53 +01:00
|
|
|
));
|
|
|
|
|
2011-01-31 02:11:18 +01:00
|
|
|
$descText = $this->getElement('add_show_description');
|
|
|
|
|
|
|
|
$descText->setDecorators(array(array('ViewScript', array(
|
|
|
|
'viewScript' => 'form/add-show-block.phtml',
|
|
|
|
'class' => 'block-display'
|
|
|
|
))));
|
|
|
|
|
2011-01-21 00:30:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|