<?
class Sinistro2_Form_GerenciaPastas extends Agro_Form
{
    public function init()
    {
        $Safras = new Sinistro2_Model_Safras();
        $this->addElement('select', 'id_safra', array(
          'MultiOptions' => $Safras->getCombo(0, false, true),
          'decorators'   => $this->elementDecorator,
          'label'        => 'Safra',
          'required'     => false,
          'value'        => $Safras->safraCurrent
        ));

        $Status = new Sistema_Model_Status();
        $this->addElement('select', 'id_status', array(
          'MultiOptions' => $Status->getComboGerenciaAvisoSinistro(),
          'decorators'   => $this->elementDecorator,
          'label'        => 'Status do Aviso',
          'required'     => false
        ));

        $this->addElement('select', 'fl_pasta_aberta', array(
          'MultiOptions' => array("" => "--- Todos ---", "1" => "Aberta", "2" => "Aguardando abertura"),
          'decorators'   => $this->elementDecorator,
          'label'        => 'Pasta',
          'required'     => false
        ));
    }
}