
<div class="col-sm-10 " >
    <div class="col-sm-12 gray_ttc " >
        <div class="col-sm-12 h3 text-center">
            Add Course Topic
            <hr>
            <br>
        </div>
        <?php
//        formID2
        $url = 'super-admin/add-course-topic';
        echo form_open($url, 'class="cmxform" id="" name="add_course_form"');
        ?>
        <div class="form-group col-sm-12">
            <div class="form-group col-sm-10">
                <div class="input-group">
                    <input type="text" 
                           data-errormessage-value-missing="Course Topic Name is required!"  placeholder="Please type Course Topic Name"
                           class="form-control validate[required, custom[topicNameExists]] text-input"
                           data-errormessage-value-missing="Please type Course Topic  name"
                           id="course_topic_name" 
                           name="course_topic_name"
                           oninput="checkCourseTopic(this.value,'<?php echo base_url().'check-course-topic-name/' ?>')"
                           maxlength="50"
                           value="<?php echo set_value('course_topic_name'); ?>" >
                    <span class="input-group-addon" id="basic-addon1" title="Please type Course Topic Name"><i class="fa fa-book"></i></span>
                </div>
                <input type="hidden" id="hidden_course_topic_name" value="">
                <div class="col-sm-12" id="course_topic_name_error" style="color: red"><?php echo form_error('course_topic_name'); ?></div>
            </div>
        </div>


        <div class="form-group col-sm-12">
            <div class="form-group col-sm-8">
                <div id="submit_status"></div>
                <div class="checkbox col-sm-12">
                    <center> 
                        <button type="submit" id="submit" class="btn btn-default" >Add Topic</button>
                    </center>
                </div>
            </div>
        </div>
        <?php echo form_close(); ?>
    </div>
</div>
<script type="text/javascript" src="<?php echo base_url() ?>back_end_resource/course/course.js"></script>
