<?php
class Sinistro_Form_TipoLaudoPreliminar extends Agro_Form {
	
	public function init() {
		$this->addElement('hidden', 'id', array('decorators' => $this->elementDecorator));
		
		$this->addElement('text', 'ds_nome_tipo_laudo_preliminar', array(
			'decorators' => $this->elementDecorator,
			'required' => true,
			'label' => 'Nome'
		));
		
		$this->addElement('text', 'ds_chave', array(
			'decorators' => $this->elementDecorator,
			'required' => true,
			'label' => 'Chave',
		));
		
		$this->addElement('textarea', 'ds_descricao_tipo_laudo_preliminar', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Descrição',
			'cols' => 50,
			'rows' => 5
		));
		
		$GrupamentoCultura = new Produto_Model_GrupamentoCulturas();
		$this->addElement('select', 'id_grupamento_cultura', array(
			'MultiOptions' => $GrupamentoCultura->fetchPairs('id', 'ds_nome_grupamento_cultura', false, false, 1, false, true, 'ASC'),
			'decorators' => $this->elementDecorator,
			'label' => 'Grupamento Cultura',
			'required' => true
		));
		
		
		/* $Safra = new Produto_Model_Safras();
		$this->addElement('select', 'id_safra', array(
			'MultiOptions' => $Safra->fetchPairs('id', 'ds_nome_safra', false, false, 1, false, false, 'DESC'),
			'decorators' => $this->elementDecorator,
			'value' => $Safra->safraCurrent,
			'label' => 'Safra',
			'required' => true
		));			 */
		
	}
}
