<?php

class Sinistro_Form_AgendamentoVistoria extends Agro_Form {
	
	public function init() {
		
		$this->setMethod('post');
		$this->setAttrib('id', 'form-agendamento');
		$this->setAttrib('action', '/sinistro/agendamentovistoria/form');
		
    	$this->addElement('hidden', 'id_agendamento', array(
    		'decorators' => array('ViewHelper')
    	));
		
    	$this->addElement('hidden', 'id_vistoria', array(
    		'decorators' => array('ViewHelper')
    	));
		
    	$this->addElement('hidden', 'id_processo', array(
    		'decorators' => array('ViewHelper')
    	));
		
    	$this->addElement('hidden', 'id_cobertura', array(
    		'decorators' => array('ViewHelper')
    	));
		
    	$this->addElement('hidden', 'id_tipo', array(
    		'decorators' => array('ViewHelper')
    	));
		
		$this->addElement('hidden', 'fl_success', array(
    		'decorators' => array('ViewHelper')
    	));
    	
		$this->addElement('hidden', 'mensagem', array(
    		'decorators' => array('ViewHelper')
    	));
		
    	$this->addElement('text', 'dt_agendamento', array(
    		'decorators'=>$this->elementDecorator,
    		'class'=>'data',
    		'required'=>true,
    		'label'=>'Data'
    	));
		
    	$this->addElement('select', 'ds_turno', array(
    		'MultiOptions'=>array('M'=>'Manhã','T'=>'Tarde','N'=>'Noite'),
    		'required'=>true,
    		'label'=>'Turno',
    		'decorators'=>$this->elementDecorator
    	));
	}
}