<?

class Endosso_Form_Propriedade extends Agro_Form {
	
	public function init() {
		$this->addElement('hidden', 'id_proposta', array('decorators' => $this->buttonDecorator));
		$this->addElement('hidden', 'id_municipio', array('decorators' => $this->buttonDecorator));
		
		$this->addElement('text', 'ds_nome_propriedade', array(
			'decorators' => $this->elementDecorator,
			'required' => true,
			'maxlength' => 100,
			'label' => 'Nome',
			'size' => 100
		));
		
		$this->addElement('text', 'ds_endereco', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Endereço',
			'maxlength' => 100,
			'required' => true,
			'size' => 40
		));
		
		$this->addElement('text', 'ds_endereco_cep', array(
			'decorators' => $this->elementDecorator,
			'required' => true,
			'maxlength' => 9,
			'label' => 'CEP',
			'class' => 'cep',
			'size' => 9
		));
		
		$this->addElement('text', 'ds_endereco_bairro', array(
			'decorators' => $this->elementDecorator,
			'maxlength' => 100,
			'label' => 'Bairro',
			'size' => 20
		));
		
		$this->addElement('text', 'ds_coordenadas', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Coordenadas Geográficas',
			'class' => 'coordenadas',
			'maxlength' => 300
		));
		
		$this->addElement('textarea', 'ds_referencia_localizacao', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Referência de Localização',
			'maxlength' => 800,
			'cols' => 98,
			'rows' => 5
		));
		
		$this->addElement('select', 'ds_pessoa_autorizada', array(
			'label' => 'Indique pessoas autorizadas a acompanhar a(s) vistoria(s), além do Proponente:',
			'MultiOptions' => array('N' => 'NÃO', 'S' => 'SIM'),
			'decorators' => $this->elementDecorator
		));
		
		$this->addElement('text', 'ds_nome_outra_pessoa', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Nome da Pessoa Autorizada',
			'maxlength' => 100,
			'size' => 50
		));
		
		$this->addElement('text', 'ds_telefone_outra_pessoa', array(
			'label' => 'Telefone da Pessoa Autorizada',
			'decorators' => $this->elementDecorator,
			'class' => 'telefone',
			'maxlength' => 20
		));
		
		$this->addElement('text', 'ds_endereco_nro', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Número',
			'maxlength' => 8,
			'size' => 8
		));
		
		$this->addElement('text', 'ds_endereco_complemento', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Complemento',
			'maxlength' => 100
		));
		
		$this->addElement('text', 'ds_sigla', array(
			'decorators' => $this->elementDecorator,
			'required' => true,
			'readonly' => true,
			'label' => 'UF',
			'size' => 2,
            'class' => 'element_disabled readonly_background_disabled'
		));
		
		$this->addElement('text', 'ds_nome_municipio', array(
			'decorators' => $this->elementDecorator,
			'label' => 'Município',
			'required' => true,
			'readonly' => true,
			'size' => 94,
            'class' => 'element_disabled readonly_background_disabled'
		));
	}
	
}