<div class="wide form">
    <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'action' => Yii::app()->createUrl($this->route),
            'method' => 'get',
        ));
    ?>

        <div class="row">
            <?php echo $form->label($model, 'FEN_IDCLIENTE', array('label' => 'Razão Social')); ?>
            <?php
                $this->widget('ext.Utils.widgets.CrmAutoComplete', array(
                    'model' => $model,
                    'attribute' => 'FEN_IDCLIENTE',
                    'url' => 'autocomplete/clientes',
                    'params' => array(
                        'field: "CLI_NOME"',
                        )
                ));
            ?>
        </div>

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

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

        <div class="row">
            <?php echo $form->label($model, 'FEN_TIPO_NEGOCIACAO'); ?>
            <?php
                $opcoes = $model->tiposNegociacao;
                echo $form->dropDownList($model, 'FEN_TIPO_NEGOCIACAO', $opcoes, array('prompt' => 'Selecione'));
            ?>
        </div>

        <div class="row">
            <?php echo $form->label($model, 'FEN_STATUS'); ?>
            <?php
                $opcoes = $model->status;
                echo $form->dropDownList($model, 'FEN_STATUS', $opcoes, array('prompt' => 'Selecione'));
            ?>
        </div>

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