<div class="wide form">
    <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'action' => Yii::app()->createUrl($this->route),
            'method' => 'get'
        ));
    ?>
        <?php
            $this->widget('application.extensions.moneymask.MMask', array('element' => '#MetasVendas_MEV_SOMA, #MetasVendas_MEV_SOMA_FINAL, #MetasVendas_MEV_SOMA_IMP, #MetasVendas_MEV_SOMA_IMP_FINAL'));
        ?>

        <div class="row">
            <?php echo $form->label($model, 'MEV_TIPO'); ?>
            <?php echo $form->dropDownList($model, 'MEV_TIPO', $model->tipos, array('prompt' => 'Todos')); ?>
        </div>

        <div class="row">
            <?php echo $form->label($model, 'MEV_ANO'); ?>
            <?php
                echo $form->dropDownList($model, 'MEV_ANO', $model->anosDisponiveis, array('prompt' => 'Todos'));
            ?>
        </div>

        <div class="row">
            <?php echo $form->label($model, 'MEV_SOMA', array('label' => 'Meta de Mensalidades')); ?>
            <?php echo $form->textField($model, 'MEV_SOMA', array('maxlength' => 14, 'style' => 'width:100px')); ?> à
            <?php echo $form->textField($model, 'MEV_SOMA_FINAL', array('maxlength' => 14, 'style' => 'width:100px')); ?>
        </div>

        <div class="row">
            <?php echo $form->label($model, 'MEV_SOMA_IMP'); ?>
            <?php echo $form->textField($model, 'MEV_SOMA_IMP', array('maxlength' => 14, 'style' => 'width:100px')); ?> à
            <?php echo $form->textField($model, 'MEV_SOMA_IMP_FINAL', array('maxlength' => 14, 'style' => 'width:100px')); ?>
        </div>

        <div class="row">
            <?php echo $form->label($model, 'MEV_RASCUNHO', array('label'=> 'Mostrar Rascunhos?', 'class' => 'line_small')); ?>
            <?php echo $form->checkBox($model, 'MEV_RASCUNHO'); ?>
        </div>

        <div class="row buttons">
            <input type="hidden" name="busca" value="1" />
            <?php echo FaHtml::searchButton(); ?>
        </div>
    <?php $this->endWidget(); ?>
</div>