<?php

class Relatorio_Form_Formbeneficiarios extends Agro_Form {

	public function init() {
		$Safras = new Relatorio_Model_Safras();
		$Safra = new Produto_Model_Safras();
		$this->addElement('select', 'id_safra', array(
			'decorators' => $this->elementDecorator,
			'MultiOptions' => $Safras->getCombo(),
			'value' => $Safras->safraCurrent,
			'label' => 'Safra',
			'required' => true
		));

		$this->addElement('select', 'id_produto', array(
			'MultiOptions' => $Safra->getComboProdutoSafraRequest($Safra->safraCurrent, 0),
			'decorators' => $this->elementDecorator,
			'label' => 'Produto',
			'multiple' => true,
			'class' => 'multiple'
		));
		
		$this->addElement('select', 'sinistro', array(
			'decorators' => $this->elementDecorator,
			'MultiOptions' => array( true => 'Sim', false => 'Não'),
			'label' => 'Sinistro?',
			'required' => true
		));		
		
	}
}