<form name="language_form" method="post" action="javascript:void(0)"
      onsubmit="return addLanguage('<?php echo base_url().'profile/add_language/'.$person_id ?>')" >
    <div class="col-sm-12">  <h3 class="text-center add_language">Add Language</h3><hr> <br></div>
    <div class="form-group col-sm-5">
        <input name="person_language" 
               class="form-control validate[required, custom[personName]] text-input" 
               id="person_language" 
               type="text" 
               placeholder="Please type Language" 
               value="<?php echo set_value('person_language'); ?>"
               autofocus=""
               data-errormessage-value-missing="Language Name is required!">
        <span id="language_error" style="color:red"></span>
    </div>
    <div class="form-group col-sm-5">
        <select data-errormessage-value-missing="Language Proficiency is Required!" 
                class="form-control validate[required] text-input"   
                name="person_language_proficiency"
                id="person_language_proficiency">
            <option value="">Select Language Proficiency</option>
            <option value="0">No Proficiency</option>
            <option value="1">Elementary proficiency</option>
            <option value="2">Limited working proficiency</option>
            <option value="3">Professional working proficiency</option>
            <option value="4">Full professional proficiency</option>
            <option value="5">Native or bilingual proficiency</option>
        </select>
        <span id="proficiency_error" style="color:red"></span>
    </div>
    <div class="col-sm-1">
        <button class="btn btn-success" type="submit">
            <i class="fa fa-save" title="Save"></i>
        </button>
    </div>
    <div class="col-sm-1" id="addLangCancel">
        <a class="btn btn-success">
            <i class="fa fa-times" title="Cancel"></i>
        </a>
    </div>
    <div class="col-sm-12"><br></div>
</form>