<div class="col-sm-10">
    <div class="row ">
        <div class="col-sm-12 ">
            <div class="col-sm-12 gray_ttc">
                <div class="course-detail-tab" style="margin-top: 10px">
                    <h3>Assign Course</h3>
                    <div class="tab-content panel-body ">
                        <div class="col-sm-12"><br></div>
                        <div class="col-sm-12  gray_ttc">
                            <input type="hidden" id="baseUrl" value="<?php echo base_url(); ?>">
                            <?php
                            $url = "admin/assign-course/$person_url";
                            echo form_open($url, 'id="formID1" name="assign_course_form"');
                            ?>
                            <div class="col-sm-8" style="padding: 30px">
                                <div class="form-group col-sm-10">
                                    <label for="parent_topic_id">Parent Topic</label>
                                    <div class="input-group">
                                        <select class="form-control validate[required]" name="parent_topic_id" id="parent_topic_id">
                                            <option value="">Select Parent Topic</option>
                                            <?php
                                            foreach ($parent_topic as $value) {
                                                echo '<option value="' . $value->topic_id . '">' . $value->topic_name . '</option>';
                                            }
                                            ?>
                                        </select>
                                        <input type="hidden" id="server_topic_id" value="<?php echo set_value('parent_topic_id'); ?>">
                                        <span class="input-group-addon" id="basic-addon1" title="Please Select Parent Topic"><i class="fa fa-book"></i></span>
                                    </div>
                                    <span class="error_color" id="parent_topic_id_error"><?php echo form_error('parent_topic_id'); ?></span>
                                </div>
                                <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">

                                <div class="form-group col-sm-10">
                                    <label for="child_topic_id">Child Topic</label>
                                    <div class="input-group">
                                        <select class="form-control validate[required]" name="child_topic_id" id="child_topic_id">
                                            <option value="">Select Child Topic</option>
                                        </select>
                                        <input type="hidden" id="server_child_topic_id" value="<?php echo set_value('child_topic_id'); ?>">
                                        <span class="input-group-addon" id="basic-addon1" title="Please Select Topic"><i class="fa fa-book"></i></span>
                                    </div>
                                    <span class="error_color" id="child_topic_id_error"><?php echo form_error('child_topic_id'); ?></span>
                                </div>

                                <div class="form-group col-sm-10">
                                    <label for="course_id">Course</label>
                                    <div class="input-group">
                                        <select class="form-control validate[required]" name="course_id" id="course_id">
                                            <option value="">Select Course</option>
                                        </select>
                                        <input type="hidden" id="server_course_id" value="<?php echo set_value('course_id'); ?>">
                                        <span class="input-group-addon" id="basic-addon1" title="Please Select Course"><i class="fa fa-book"></i></span>
                                    </div>
                                    <span class="error_color" id="cupon_id_error"><?php echo form_error('course_id'); ?></span>
                                </div>

                                <div class="form-group col-sm-10">
                                    <label for="cupon_id">Select Coupon</label>
                                    <div class="input-group">
                                        <select class="form-control" name="coupon_id" id="coupon_id">
                                            <option value="">Select Coupon</option>
                                            <?php
                                            foreach ($all_coupon as $value) {
                                                echo '<option value="' . $value->coupon_id . '">' . $value->coupon_name . '</option>';
                                            }
                                            ?>
                                        </select>
                                        <input type="hidden" id="server_coupon_id" value="<?php echo set_value('coupon_id'); ?>">
                                        <span class="input-group-addon" id="basic-addon1" title="Please Select Coupon"><i class="fa fa-book"></i></span>
                                    </div>
                                    <span class="error_color" id="cupon_id_error"><?php echo form_error('cupon_id'); ?></span>
                                </div>

                                <div class="form-group col-sm-10">
                                    <div id="submit_status"></div>
                                    <div class="checkbox col-sm-12">
                                        <center><button type="submit" id="submit" class="btn btn-default" >Assign Course</button></center>
                                    </div>
                                </div>
                            </div>  
                            <?php echo form_close(); ?>
                        </div>  
                        <div class="col-sm-12"><br></div>
                    </div>   
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="<?php echo base_url() ?>back_end_resource/accounts/assign_course.js">
</script>