<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'afianzadora-form',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
)); ?>
    <p class="help-block">Campos con  <span class="required">*</span> son requeridos.</p>
    <br>
    <?= $form->errorSummary($model); ?>
    <?= $form->textFieldRow($model, 'descripcion', array('class' => 'span5')); ?>
    <?= $form->dropDownListRow($model, 'id_proveedor', Proveedor::getAll(), array('prompt' => '-- SELECCIONE --', 'class' => 'span5')); ?>
    <div  style="text-align: center" class="form-actions">
        <?php $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => $model->isNewRecord ? 'Registrar' : 'Guardar',
        )); ?>
    </div>
<?php $this->endWidget(); ?>
