<div class="wide form">

    <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'method' => 'get',
        ));
    ?>
        <?php
            $this->widget('application.extensions.EChosen.EChosen', array('target' => '.echosen', 'useJQuery' => true));
        ?>

        <div class="row">
            <?php echo $form->label($modelClientes, 'CLI_NOME'); ?>
            <?php
                $this->widget('ext.Utils.widgets.CrmAutoComplete', array(
                    'model' => $modelClientes,
                    'attribute' => 'CLI_NOME',
                    'url' => 'autocomplete/clientes',
                    'params' => array(
                        'field: "CLI_NOME"',
                        'situacao: ["P", "FN", "FP", "N", "NP", "PI"]',
                        'todos: "true"',
                    )
                ));
            ?>
        </div>

        <div class="row buttons">
            <input type="hidden" name="busca" value="1" />
            <input type="hidden" name="id" value="<?php echo $model->CLT_IDTRANSFERENCIA; ?>" />
            <input type="hidden" name="vincular-cliente" value="true" />
            <?php echo FaHtml::searchButton(); ?>
        </div>

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

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