<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, 'MOT_DESCRICAO'); ?>
        <?php echo $form->textField($model, 'MOT_DESCRICAO', array('maxlength' => 40)); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'MOT_TIPO'); ?>
        <?php echo $form->dropDownList($model, 'MOT_TIPO', Motivos::getMotivosList(), array('prompt' => 'Todos')); ?>
    </div>
    <div class="row">
        <?php echo $form->label($model, 'MOT_MULTIPLOS_CLIENTES'); ?>
        <?php echo $form->dropDownList($model, 'MOT_MULTIPLOS_CLIENTES', ['1'=> 'Sim', '2' => 'Não'], array('prompt' => 'Todos')); ?>
    </div>
    <div class="row">
        <?php echo $form->label($model, 'MOT_TIPOCONTATO'); ?>
        <?php
            $tipos = Util::$tipo_de_contato;
            echo $form->dropDownList($model, 'MOT_TIPOCONTATO', $tipos, array('prompt' => 'Todos'));
        ?>
    </div>

    <div class="row">
        <?php echo $form->label($model, 'MOT_SITUACAO'); ?>
        <?php echo $form->dropDownList($model, 'MOT_SITUACAO', array('A' => 'Ativo', 'I' => 'Inativo'), array('prompt' => 'Todas')); ?>
    </div>

    <div class="row buttons">
        <?php echo FaHtml::searchButton(); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- search-form -->