|
@@ -819,7 +819,15 @@ tbody, td, tfoot, th, thead, tr {
|
|
|
<div class="mb-2">
|
|
|
<label class="form-label config">University Name</label>
|
|
|
<div class="form-icon position-relative">
|
|
|
- <input type="text" class="form-control" placeholder="University Name" id="university_name" name="university_name" value="{{$user->university_name}}" required="" style="font-size: 13px;">
|
|
|
+ {{-- <input type="text" class="form-control" placeholder="University Name" id="university_name" name="university_name" value="{{$user->university_name}}" required="" style="font-size: 13px;"> --}}
|
|
|
+ <select class="form-control" name="university_name" id="university_name">
|
|
|
+ <option value="" disabled selected>Choose one..</option>
|
|
|
+ @foreach($universities as $row)
|
|
|
+ <option value="{{$row->id}}" @if($user->university_name ==$row->id) selected @endif>{{ $row->name}}</option>
|
|
|
+ @endforeach
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -882,14 +890,16 @@ tbody, td, tfoot, th, thead, tr {
|
|
|
<div class="col-md-12 mt-2">
|
|
|
<div class="mb-2">
|
|
|
<div class="form-icon position-relative p-2" style="display: flex;">
|
|
|
- <input type="text" class="form-control" placeholder="" name="" required="">
|
|
|
- <button class="btn btn2" style="margin-left: -3.4rem; border-radius: 0px 6px 6px 0px">Add</button>
|
|
|
+ <input type="hidden" name="user_id" value="{{$user->id}}" id="res_user_id">
|
|
|
+ <input type="text" class="form-control" placeholder="" name="research" id="research" required="">
|
|
|
+ <button class="btn btn2 research_interest" style="margin-left: -3.4rem; border-radius: 0px 6px 6px 0px">Add</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="single_glance_row mt-4">
|
|
|
<div style="display: flex;">
|
|
|
<div class="left" style="width: 90%;">
|
|
|
- <span class="title" style="font-size:11px;" id="interest" contenteditable="true" style="padding: 5px;">Business 1</span>
|
|
|
+ <div id="load_research_interest"></div>
|
|
|
+ {{-- <span class="title" style="font-size:11px;" id="interest" contenteditable="true" style="padding: 5px;">Business 1</span> --}}
|
|
|
</div>
|
|
|
<!-- <div class="right" style="width: 10%;">
|
|
|
<span class="title" style="font-size:11px;">
|
|
@@ -1042,6 +1052,11 @@ tbody, td, tfoot, th, thead, tr {
|
|
|
"{{ route('sub-content', ['name'=>'load_profile_info']) }}"
|
|
|
);
|
|
|
|
|
|
+ fetch_sub_content(
|
|
|
+ '#load_research_interest',
|
|
|
+ "{{ route('sub-content', ['name'=>'load_research_interest']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
$('.update_profile').on('click', function(){
|
|
|
|
|
|
var id =$('#u_id').val();
|
|
@@ -1097,9 +1112,35 @@ tbody, td, tfoot, th, thead, tr {
|
|
|
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ $('.research_interest').on('click', function(){
|
|
|
+ var id =$('#res_user_id').val();
|
|
|
+ var research =$('#research').val();
|
|
|
+
|
|
|
+ var form_data={
|
|
|
+ _token: "{{ csrf_token() }}",
|
|
|
+ id: id,
|
|
|
+ research: research,
|
|
|
+ }
|
|
|
+
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'research_interest']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ fetch_sub_content(
|
|
|
+ '#load_research_interest',
|
|
|
+ "{{ route('sub-content', ['name'=>'load_research_interest']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
- let answer = document.getElementById("interest").contentEditable;
|
|
|
- document.getElementById("demo").innerHTML = answer;
|
|
|
+
|
|
|
+
|
|
|
+ // let answer = document.getElementById("interest").contentEditable;
|
|
|
+ // document.getElementById("demo").innerHTML = answer;
|
|
|
</script>
|
|
|
|
|
|
|