<div class="row m-b-30">
    <div class="col-12 col-sm-12 col-md-8 col-xl-8 col-lg-8 " style="margin-left: 25px;">
     <?php echo CHtml::link('VOLVER A &nbsp<i class="far fa-address-card"></i> LISTA DE PAGOS', Yii::app()->createUrl('pagos'), 
             array('class'=>'btn btn-secondary','data-toggle' => "tooltip",
                            'data-original-title' => 'LISTA DE PAGOS')); ?>
    </div>
</div>       





<div class="form">
  <?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'pagos-form',
        'htmlOptions'=>array('class'=>'form-horizontal'),
        'enableClientValidation' => true,
        'clientOptions'=>array(
        'validateOnSubmit'=>true,
  ),
      
)); ?>
    
	<div class="row">
            <div class="col-12">
                <p class="note">Los campos con <span class="required">*</span> son obligatorios.</p>
            </div> 
        </div>
    
         <div class="row">
                <div class="col-12">
                        <div class="form-group">
                           <?php echo $form->labelEx($model,'id_prestamo', array('class' => 'col-12')); ?>
                            
                            <div class="col-12">
                  
                                <?php 
                               $this->widget('ext.select2.ESelect2',array(
                                 'model' => $model,
                                 'attribute' => 'id_prestamo',  
                                 'data'=> Prestamo::lista(),
                                 'options'=>array(
                                   'allowClear'=>true,
                                   'placeholder'=>'SELECCIONE EL PRESTAMO',
                                 ),
                               ));
                               ?> 
                           <?php echo $form->error($model,'id_prestamo'); ?>
                          </div>
                        </div>
                </div>
            <div class="col-12 col-sm-12 col-md-5"></div>
          </div>  
            
    
    <div class="row">
  
               
             
        <div class="col-12 col-sm-12 col-md-4">
             <div class="form-group">
		<?php echo $form->labelEx($model,'fecha_cancelo',array('class' => 'col-12 text-uppercase')); ?>
		<div class="col-12">
                <?php
                        $this->widget('ext.YiiDateTimePicker.jqueryDateTime', array(
                            'model' => $model,
                            'attribute' => 'fecha',
                            'options' => array(
                                'lang'=>'es',
                                'timepicker'=>false,
                                'format'=>'d-m-Y',
                                ),
                            'htmlOptions' => array(
                                'class' => 'form-control form-control-line',
                                'placeholder'=>"dd-mm-aaaa",
                                'autocomplete'=>"off"
                                ),
                        ));
                        ?>
                 <?php echo $form->error($model,'fecha_cancelo'); ?>
	       </div>
             </div>
        </div>
        
            <div class="col-12 col-sm-12 col-md-8">
                <div class="form-group">
                   <?php echo $form->labelEx($model,'observacion_cancelo', array('class' => 'col-12 text-uppercase')); ?>
                   <div class="col-12">
          
                     <?php echo $form->textField($model,'observacion_cancelo',array('size'=>60,'maxlength'=>100,
                               'class' => 'form-control form-control-line text-uppercase', 
                               'placeholder'=>"")); ?>   
                       
                   <?php echo $form->error($model,'observacion_cancelo'); ?>
                  </div>
                </div>
            </div>
        
        
    </div>
    
      
      <div class="row justify-content-center" >
                <div class="col-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 m-b-40 m-t-20">
                       <button type="submit" class="btn btn-large btn-block btn-primary  ">
                               <i class="fas fa-save fa-lg   "></i>    <?php echo $model->isNewRecord ? "CANELAR CUOTA" : "EDITAR"; ?></button>
                </div> 
            </div>
               
            <div class="row justify-content-center">
                <div class="col-12 col-sm-12 col-md-8 col-lg-8 col-xl-8">
                <?php echo $form->errorSummary($model); ?>
                </div>
            </div>
    
    
<?php $this->endWidget(); ?>
</div><!-- form -->

