<div class="form form-ata">

    <?php
    $form = $this->beginWidget('GxActiveForm', array(
        'id' => 'atas-form',
        'enableAjaxValidation' => false,
        'focus' => array($model, 'ATA_DATA'),
    ));

    $this->widget('application.extensions.emultiselect.EMultiSelect');

    $model->ATA_HORARIO = substr($model->ATA_HORARIO, 0, 5);
    ?>

    <?php echo FaHtml::getFormInfo($form, $model); ?>

    <div class="form-group col-xs-6 col-sm-3 col-md-1 col-lg-1">
        <?php echo $form->labelEx($model, 'ATA_DATA'); ?>
        <?php $form->widget('ext.Utils.widgets.CrmDatePicker', array('model' => $model, 'attribute' => 'ATA_DATA')); ?>
        <?php echo $form->error($model, 'ATA_DATA'); ?>
    </div><!-- form-group -->
    <div class="form-group col-xs-12 col-sm-8 col-md-7 col-lg-5">
        <?php echo $form->labelEx($model, 'ATA_ASSUNTO'); ?>
        <?php echo $form->textField($model, 'ATA_ASSUNTO', array('maxlength' => 255)); ?>
        <?php echo $form->error($model, 'ATA_ASSUNTO'); ?>
    </div><!-- row -->

    <div class="form-group col-xs-6 col-sm-3 col-md-2 col-lg-1 col-lg-offset-1 col-xl-offset-2">
        <?php echo $form->labelEx($model, 'ATA_DATAPROXIMAREUNIAO'); ?>
        <?php $form->widget('ext.Utils.widgets.CrmDatePicker', array('model' => $model, 'attribute' => 'ATA_DATAPROXIMAREUNIAO')); ?>
        <?php echo $form->error($model, 'ATA_DATAPROXIMAREUNIAO'); ?>
    </div><!-- row -->

    <div class="form-group col-xs-6 col-sm-3 col-md-2 col-lg-1">
        <?php echo $form->labelEx($model, 'ATA_HORARIO'); ?>
        <?php echo $form->textField($model, 'ATA_HORARIO', array('maxlength' => 5, 'class' => 'format_hora')); ?>
        <?php echo $form->error($model, 'ATA_HORARIO'); ?>
    </div>
    <div class="clearfix"></div>
    <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-7 col-xl-8">
        <?php echo $form->labelEx($model, 'ATA_CONTEUDO'); ?>
        <?php echo $form->textArea($model, 'ATA_CONTEUDO', array('class' => 'ckeditor')); ?>
        <?php echo $form->error($model, 'ATA_CONTEUDO'); ?>
    </div><!-- row -->

    <div class="form-group col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4">
        <?php
            echo $form->labelEx($model, 'Participantes');
            echo $form->dropDownList($model, 'Participantes', GxHtml::listDataEx(Funcionarios::model()->findAll('FUN_SITUACAO="A" order by FUN_NOME')), array(
                'multiple' => 'multiple',
                'key' => 'cidades',
                'class' => 'multiselect',
                'size' => '17'
            ));
        ?>
        <?php echo $form->error($model, 'Participantes'); ?>
    </div><!-- row -->
    
    <?php
    echo FaHtml::saveButton();
    $this->endWidget();
    ?>
</div><!-- form -->
