<?php
/* @var $this CargoController */
/* @var $model Cargo */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cargo-form',
	'enableAjaxValidation'=>true,
        'htmlOptions' => array(
                'class' => 'form-horizontal'
            )
)); ?>


        
        <div class="row justify-content-center">
            <div class="col-12 col-sm-12 col-md-6 ">
                <p class="note">Los campos con <span class="required">*</span> son obligatorios.</p>
            </div> 
        </div>
    
        <div class="row justify-content-center mt-2">
        <div class="col-12 col-sm-12 col-md-6">
             <div class="form-group">
		<?php echo $form->labelEx($model,'descripcion', array('class' => 'col-12')); ?>
		<div class="col-12">
                <?php echo $form->textField($model,'descripcion',array('size'=>60,'maxlength'=>100,
                    'class' => 'form-control form-control-line ', 
                    'autocomplete'=>"off",
                    'placeholder'=>"",
                    )); ?>
                <?php echo $form->error($model,'descripcion'); ?>
	       </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 mb-2">
                    <button type="submit" class="btn btn-large btn-block btn-success  ">
                            <i class="fa fa-floppy-o fa-lg   "></i>    <?php echo $model->isNewRecord ? "GUARDAR" : "MODIFICAR"; ?></button>
                   </div> 
         
        </div>

    <div class="row justify-content-center">  
        <div class="col-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-2">
            <?php echo $form->errorSummary($model); ?>
        </div> 
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->