<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'concepto-capacidad-pago-form',
	'enableAjaxValidation'=>false,
)); ?>


	<?php echo $form->errorSummary($model); ?>
<?php 
    $this->widget('bootstrap.widgets.TbAlert', array(
        'block' => true, // display a larger alert block?
        'fade' => true, // use transitions?
        'closeText' => '×', // close link text - if set to false, no close link is displayed
        'alerts' => array(// configurations per alert type
        'success' => array('block' => true, 'fade' => true, 'closeText' => '×'), // success, info, warning, error or danger
        'error' => array('block' => true, 'fade' => true, 'closeText' => '×'), // success, info, warning, error or danger
        ),
    ));

    $this->widget('bootstrap.widgets.TbButtonGroup', array(
        'type' => 'action', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
        'htmlOptions' => array('class' => 'boton'),
        'buttons' => array(
            array('label' => 'Acciones', 'type' => 'danger', 'icon' => 'icon-file icon-white', 'items' => array(
                array('label' => 'Listar los conceptos de capacidad de pagos', 'icon' => 'icon-plus-sign', 'target' => '_blank', 'url' => array('admin')),
                //array('label' => 'Registrar tipo de préstamo', 'icon' => 'icon-plus-sign', 'target' => '_blank', 'url' => array('create')),
                )),
        ),
    ));
    ?><br><br>
    <p class="help-block">Campos con <span class="required">*</span> son obligatorios.</p>

    <div class="row">
        <div class="span6">
            <?php echo $form->textFieldRow($model, 'nombre_concepto', array('class' => 'span6')); ?>
        </div>
        <div class="span3"><br>
            <?php echo $form->checkBoxRow($model,'asignacion'); ?>

        </div>
    </div>
	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
                        'label'=>$model->isNewRecord ? 'Registrar' : 'Actualizar',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
