<div class="form">
    <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'id' => 'complexidades-form',
            'enableAjaxValidation' => false,
            'focus'=>array($model,'END_DESCRICAO'),
        ));
    ?>
        <?= FaHtml::getFormInfo($form, $model); ?>

        <div class="row">
            <?php echo $form->labelEx($model,'CPX_DESCRICAO'); ?>
            <?php echo $form->textField($model, 'CPX_DESCRICAO', array('maxlength' => 50)); ?>
            <?php echo $form->error($model,'CPX_DESCRICAO'); ?>
        </div><!-- row -->

        <div class="row">
            <?php echo $form->labelEx($model,'CPX_HORAS_TOTAIS'); ?>
            <?php echo $form->numberField($model, 'CPX_HORAS_TOTAIS', array('min' => 1)); ?>
            <?php echo $form->error($model,'CPX_HORAS_TOTAIS'); ?>
        </div><!-- row -->

        <div class="row">
            <?php echo $form->labelEx($model,'CPX_PERCENTUAL_LOCAL[2]', array('required' => true)); ?>
            <?php echo $form->numberField($model, 'CPX_PERCENTUAL_LOCAL[2]', array('min' => 1)); ?>
            <?php echo $form->error($model,'CPX_PERCENTUAL_LOCAL[2]'); ?>
        </div><!-- row -->

        <div class="row">
            <?php echo $form->labelEx($model,'CPX_PERCENTUAL_LOCAL[1]', array('required' => true)); ?>
            <?php echo $form->numberField($model, 'CPX_PERCENTUAL_LOCAL[1]', array('min' => 1)); ?>
            <?php echo $form->error($model,'CPX_PERCENTUAL_LOCAL[1]'); ?>
        </div><!-- row -->

        <div class="row">
            <?php echo $form->labelEx($model,'CPX_PERCENTUAL_LOCAL[16]', array('required' => true)); ?>
            <?php echo $form->numberField($model, 'CPX_PERCENTUAL_LOCAL[16]', array('min' => 1)); ?>
            <?php echo $form->error($model,'CPX_PERCENTUAL_LOCAL[16]'); ?>
        </div><!-- row -->

        <?php if ($model->isNewRecord) { ?>
            <div class="row">
                <?php echo $form->labelEx($model,'CPX_STATUS'); ?>
                <?php echo $form->dropDownList($model, 'CPX_STATUS', $model->status, array('prompt'=>'Selecione')); ?>
                <?php echo $form->error($model,'CPX_STATUS'); ?>
            </div><!-- row -->
        <?php } ?>

        <?= FaHtml::saveButton(); ?>
    <?php $this->endWidget(); ?>
</div>