<div class="row">
  <div class="col-lg-12 mt-4">
    <div class="card">
      <div class="card-header form-card-header">
        <h4 class="m-b-0 text-light">UPDATE JOB </h4>
      </div>
      <div class="card-body">
        <form id="update_job" class="form-material">
          <div class="form-body">
            <div class="row">
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>ROLE <span>*</span></strong></label>
                  <input type="text" id="role" name="role" value="<?php echo $careers[0]->role; ?>" class="form-control"   autocomplete="off" maxlength="100" required="">
                  <label for="role" class="error"></label> 
                </div>
              </div>

              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>QUALIFICATION AND EXPERIENCE <span>*</span></strong></label>
                  <textarea id="experience" name="experience" class="contenteditor form-control"   autocomplete="off" maxlength="100" required=""><?php echo $careers[0]->experience; ?></textarea>
                  <label for="experience" class="error"></label> 
                </div>
              </div>

              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>LOCATION <span>*</span></strong></label>
                  <input type="text" id="location" name="location" value="<?php echo $careers[0]->location; ?>" class="form-control"   autocomplete="off" maxlength="100" required="">
                  <label for="location" class="error"></label> 
                </div>
              </div>

              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>DESCRIPTION <span>*</span></strong></label>
                  <textarea id="description" name="description" class="contenteditor form-control"   autocomplete="off" maxlength="255" required=""><?php echo $careers[0]->description; ?></textarea>
                  <label for="description" class="error"></label> 
                </div>
              </div>
             
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>STATUS</strong></label>
                  <select name="status" id="status" class="form-control"   autocomplete="off" maxlength="100">
                    <option value="1" <?php if($careers[0]->status == '1'){echo 'selected'; }?>>ACTIVE</option>
                    <option value="0" <?php if($careers[0]->status == '0'){echo 'selected'; }?>>DEACTIVE</option>
                  </select>
                  <label for="status" class="error"></label> 
                </div>
              </div>
            </div>
          </div>
          
          <input type="hidden" id="id" name="id" value="<?php echo $careers[0]->id; ?>">

          <div class="form-actions">
            <button type="submit" class="btn btn-rounded btn-outline-success col-md-3">SAVE</button>  
            <button type="button" class="btn btn-rounded btn-outline-danger col-md-3" onclick="window.location.href='<?php echo base_url(); ?>careers/list'">CANCEL</button>  
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript" src="<?php echo base_url();?>admin-assets/ckeditor_ckfinder/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>admin-assets/ckeditor_ckfinder/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
var baseUrl = '<?php echo base_url() ?>';
  var areas = Array('description','experience');
    $.each(areas, function (i, area) {
    CKEDITOR.replace(area, {
    filebrowserBrowseUrl :  baseUrl+'admin-assets/ckeditor_ckfinder/ckfinder/ckfinder.html',
    filebrowserImageBrowseUrl :  baseUrl+'admin-assets/ckeditor_ckfinder/ckfinder/ckfinder.html?type=Images',
    filebrowserFlashBrowseUrl :  baseUrl+'admin-assets/ckeditor_ckfinder/ckfinder/ckfinder.html?type=Flash',
    filebrowserUploadUrl : baseUrl+'admin-assets/ckeditor_ckfinder/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
    filebrowserImageUploadUrl : baseUrl+'admin-assets/ckeditor_ckfinder/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
    filebrowserFlashUploadUrl : baseUrl+'admin-assets/ckeditor_ckfinder/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
     });
   });
</script>