<?

class Atendimento_Form_ContatoCategoria extends Agro_Form {
	
	public function init() {
		
		$this->addElement('hidden', 'id', array('decorators' => $this->buttonDecorator));
		
		$this->addElement('text', 'ds_nome_categoria', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Nome',
			'required' => true,
			'maxlength' => 50,
			'size' => 30
		));
		
		
		$this->save = $this->createElement('button', 'salvar', array('type'=>'submit'));
		$this->save->setDecorators($this->buttonDecorator);
		$this->save->setDecorators($this->buttonDecorator);
		$this->save->setLabel('Salvar');
		$this->addElement($this->save);
		
		$this->cancel = $this->createElement('button', 'cancelar', array('onclick'=>"location.href='/atendimento/tipochamado'"));
		$this->cancel->setDecorators($this->buttonDecorator);
		$this->cancel->setLabel('Cancelar');
		$this->addElement($this->cancel);
	}
}