<div class="search-form" style="display:none; margin-top: 0px;">
    <div class="wide form">
        <?php
            $form = $this->beginWidget('GxActiveForm', array(
                'action' => Yii::app()->createUrl($this->route),
                'method' => 'get'
            ));
        ?>
            <?php
                $this->widget('application.extensions.EChosen.EChosen', array(
                    'target' => '.echosen',
                    'useJQuery' => true
                ));
            ?>
            <input type="hidden" name="id" value="<?= $model->CLC_IDCANCELAMENTO; ?>" />
            <div class="row">
                <?php echo $form->label($modelAtendimento, 'ATD_IDATENDIMENTO',array('label' => 'Código')); ?>
                <?php echo $form->textField($modelAtendimento, 'ATD_IDATENDIMENTO'); ?>
            </div>
            <div class="row">
                <?php echo $form->label($modelAtendimento, 'ATD_OBS', array('label' => 'Busca textual')); ?>
                <?php echo $form->textField($modelAtendimento, 'ATD_OBS'); ?>
            </div>
            <div class="row">
                <?php echo $form->label($modelAtendimento, 'ATD_DTCADASTRO_INICIAL'); ?>
                <?php $form->widget('ext.Utils.widgets.CrmDatePicker', array('model' => $modelAtendimento, 'attribute' => 'ATD_DTCADASTRO_INICIAL')); ?> à
                <?php $form->widget('ext.Utils.widgets.CrmDatePicker', array('model' => $modelAtendimento, 'attribute' => 'ATD_DTCADASTRO_FINAL')); ?>
            </div>
            <div class="row">
                <?php echo $form->label($modelAtendimento, 'ATD_HORAINICIO'); ?>
                <?php echo $form->textField($modelAtendimento, 'ATD_HORAINICIO', array('class' => 'format_hora hora_inicio', 'maxlength' => 5)); ?> à
                <?php echo $form->textField($modelAtendimento, 'ATD_HORAFINAL', array('class' => 'format_hora hora_final', 'maxlength' => 5)); ?>
            </div>
            <div class="row">
                <?php echo $form->labelEx($modelAtendimento, 'ATD_IDMOTIVO'); ?>
                <?php
                    $motivosmodelAtendimento = GxHtml::listDataEx(
                        Motivos::model()->findAll("
                            MOT_TIPO = 3 AND
                            MOT_SITUACAO = 'A'
                            ORDER BY MOT_DESCRICAO
                        ")
                    );
                    echo $form->dropDownList($modelAtendimento, 'ATD_IDMOTIVO', $motivosmodelAtendimento, array('multiple' => 'multiple', 'class' => 'echosen', 'data-placeholder' => 'Todos'));
                ?>
            </div><!-- row -->
            <div class="row">
                <?php echo $form->labelEx($modelAtendimento, 'ATD_AUTOMATICO', array('label' => 'Mostrar lançamentos automáticos', 'class' => 'label_checkbox')); ?>
                <?php echo $form->checkBox($modelAtendimento, 'ATD_AUTOMATICO', array('class' => 'input_checkbox')); ?>
            </div><!-- row -->
            <div class="row buttons">
                <?php echo FaHtml::searchButton("Pesquisar", array('name' => 'yt1')); ?>
            </div>
        <?php $this->endWidget(); ?>
    </div>
</div><!-- search-form -->