summaryrefslogblamecommitdiffstats
path: root/application/forms/BootmenuCreate.php
blob: 5b284f5e6b692f6c7237b9e7f8b473becd6cbcd9 (plain) (tree)
1
2
3
4
5
6
7






                                                       































                                                                           




     
<?php

class Application_Form_BootmenuCreate extends Zend_Form
{

    public function init()
    {
        $this->setName("BootMenuCreate");
		$this->setMethod('post');

        $this->addElement('text', 'title', array(
			'filters' => array('StringTrim'),
			'validators' => array(
				array('StringLength', false, array(0, 50)),
			),
			'required' => true,
			'label' => 'Title:',
		));
		
		$this->addElement('text', 'groupID', array(
			'filters' => array('StringTrim'),
			'validators' => array(
				array('StringLength', false, array(0, 50)),
			),
			'required' => true,
			'label' => 'GroupID:',
			'value' => '1',
		));
		
        $this->addElement('submit', 'createbootmenu', array(
            'required' => false,
            'ignore'   => true,
            'label'    => 'Create Bootmenu',
        ));  
        
        $this->addElement('button', 'Cancel', array(
            'onclick' => 'self.location="/bootmenu"'
        ));  

    }


}