 <link href="<?php echo base_url(); ?>assets/vendors/select2/dist/css/select2.min.css" rel="stylesheet">
  <link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrapValidator.css"/>
 <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                    <h3>Account</h3>
                </div>
            </div>
            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Update Head</h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">

                    <form id="add_defn" class="form-horizontal form-label-left" action="<?php echo base_url()?>Account/update_head" method="post">
       <input type="hidden" name="last_val" value="<?php echo $heads['id'];?>">
      
                      
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                <input id="fname" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="fname" value="<?php echo $heads['name'];?>" placeholder="Name" required="required" type="text">
                        </div>
                      </div>

                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="des">Description<span class="required"></span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <textarea id="description" class="form-control col-md-7 col-xs-12" name="description"><?php echo $heads['description'];?></textarea>
                        </div>
                      </div>
                  <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Update</button>
                        </div>
                      </div>
                    </form>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->

        <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>
         <script src="<?php echo base_url(); ?>assets/js/bootstrapValidator.js"></script>
        <script src="<?php echo base_url(); ?>assets/vendors/select2/dist/js/select2.full.min.js"></script>
      <script type="text/javascript">
        // var jq = jQuery.noConflict();
$(document).ready(function() {
 $('#add_defn').bootstrapValidator({
       feedbackIcons: {
              valid: 'glyphicon glyphicon-ok',
              invalid: 'glyphicon glyphicon-remove',
              validating: 'glyphicon glyphicon-refresh'
                   },
        fields: {
                    code: {
                        trigger:'change keyup',
                        validators: {
                            notEmpty: {
                                message: 'Code to is required'
                            }
                        }
                    },
                 
                  fname: {
                        trigger:'change keyup',
                        validators: {
                            notEmpty: {
                                message: 'Name is required'
                            }
                        }
                    },
                
                    
        }
    });
    
});
</script>

