|
@@ -214,12 +214,22 @@
|
|
|
<label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @if(count($publications) > 0)
|
|
|
+ <div class="pretty p-default p-round">
|
|
|
+ <input type="radio" class="all_publication_delete" data-id="{{$user_info->id}}" name="is_publication" value="no" {{ Auth::user()->is_publication == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
+ <div class="state p-primary">
|
|
|
+ <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
<div class="pretty p-default p-round">
|
|
|
<input type="radio" class="is_publication" data-id="{{$user_info->id}}" name="is_publication" value="no" {{ Auth::user()->is_publication == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
<div class="state p-primary">
|
|
|
<label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -295,12 +305,22 @@
|
|
|
<label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @if(count($institution) > 0)
|
|
|
+ <div class="pretty p-default p-round">
|
|
|
+ <input type="radio" class="all_education_history_delete" data-id="{{$user_info->id}}" name="is_education" value="no" {{ Auth::user()->is_education == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
+ <div class="state p-primary">
|
|
|
+ <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
<div class="pretty p-default p-round">
|
|
|
<input type="radio" class="is_education" data-id="{{$user_info->id}}" name="is_education" value="no" {{ Auth::user()->is_education == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
<div class="state p-primary">
|
|
|
<label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
@@ -503,12 +523,22 @@
|
|
|
<label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @if(count($work_experience) > 0)
|
|
|
+ <div class="pretty p-default p-round">
|
|
|
+ <input type="radio" class="all_work_experience_delete" data-id="{{$user_info->id}}" name="work_experience" value="no" {{ Auth::user()->is_work_experience == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
+ <div class="state p-primary">
|
|
|
+ <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
<div class="pretty p-default p-round">
|
|
|
<input type="radio" class="work_experience" data-id="{{$user_info->id}}" name="work_experience" value="no" {{ Auth::user()->is_work_experience == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
<div class="state p-primary">
|
|
|
<label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -672,12 +702,21 @@
|
|
|
<label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @if(count($score) > 0)
|
|
|
+ <div class="pretty p-default p-round">
|
|
|
+ <input type="radio" class="all_test_score_delete" data-id="{{$user_info->id}}" name="is_test_score" value="no" {{ Auth::user()->is_test_score == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
+ <div class="state p-primary">
|
|
|
+ <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
<div class="pretty p-default p-round">
|
|
|
<input type="radio" class="is_test_score" data-id="{{$user_info->id}}" name="is_test_score" value="no" {{ Auth::user()->is_test_score == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
|
|
|
<div class="state p-primary">
|
|
|
<label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-6 mt-2" id="add_test_score" @if(Auth::user()->is_test_score == 2 || Auth::user()->is_test_score == NULL) style="display:none;" @endif>
|
|
@@ -791,17 +830,82 @@
|
|
|
</div><!--end row-->
|
|
|
</div><!--end container-->
|
|
|
</div>
|
|
|
- </div><!--end row-->
|
|
|
- </div><!--end container-->
|
|
|
- </section><!--end section-->
|
|
|
- <!-- Hero End -->
|
|
|
-
|
|
|
+ </div><!--end row-->
|
|
|
+ </div><!--end container-->
|
|
|
+ </section><!--end section-->
|
|
|
+ <!-- Hero End -->
|
|
|
+
|
|
|
@endsection
|
|
|
-@push('js')
|
|
|
+@push('js')
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
$( function() {
|
|
|
-
|
|
|
+
|
|
|
+ fetch_sub_content(
|
|
|
+ '#publication_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ fetch_sub_content(
|
|
|
+ '#education_history_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'education_history_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+
|
|
|
+ fetch_sub_content(
|
|
|
+ '#work_experience_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'work_experience_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ fetch_sub_content(
|
|
|
+ '#english_languge_proficiency_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'english_languge_proficiency_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ $('.btn-proposal-open').on('click', function(){
|
|
|
+ $('.proposal_info').show();
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ $('.btn-proposal-cancel').on('click', function(){
|
|
|
+ $('.proposal_info').hide();
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.btn-publication-open').on('click', function(){
|
|
|
+ $('.publication_info').show();
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ $('.btn-publication-cancel').on('click', function(){
|
|
|
+ $('.publication_info').hide();
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.btn-education-open').on('click', function(){
|
|
|
+ $('.education_info').show();
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ $('.btn-education-cancel').on('click', function(){
|
|
|
+ $('.education_info').hide();
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.btn-workexp-open').on('click', function(){
|
|
|
+ $('.workexp_info').show();
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ $('.btn-workexp-cancel').on('click', function(){
|
|
|
+ $('.workexp_info').hide();
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.btn-score-open').on('click', function(){
|
|
|
+ $('.score_info').show();
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ $('.btn-score-cancel').on('click', function(){
|
|
|
+ $('.score_info').hide();
|
|
|
+ });
|
|
|
|
|
|
var form_row_added=false;
|
|
|
|
|
@@ -826,401 +930,456 @@
|
|
|
"{{ route('sub-content', ['name'=>'edit_proposal']) }}?p_id="+p_id
|
|
|
);
|
|
|
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ $('.delete_education').on('click', function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ var delete_url="{{ url('education-remove') }}/"+$(this).data('id');
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.ajax({
|
|
|
+ url:delete_url,
|
|
|
+ type: "GET",
|
|
|
+ success: function(data){
|
|
|
+ setTimeout(function() { location.reload(); }, 1000);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
|
|
|
-
|
|
|
|
|
|
- $('.delete_education').on('click', function(e) {
|
|
|
- e.preventDefault();
|
|
|
- var delete_url="{{ url('education-remove') }}/"+$(this).data('id');
|
|
|
- swal({
|
|
|
- title: "Are you sure?",
|
|
|
- text: "You will not be able to recover this data!",
|
|
|
- type: "warning",
|
|
|
- showCancelButton: true,
|
|
|
- buttonsStyling: false,
|
|
|
- confirmButtonClass: 'btn btn-primary',
|
|
|
- cancelButtonClass: 'btn btn-light',
|
|
|
- confirmButtonText: "Yes, delete!",
|
|
|
- cancelButtonText: "No, cancel!"
|
|
|
- },
|
|
|
- function(isConfirm){
|
|
|
- if(isConfirm){
|
|
|
- $.ajax({
|
|
|
- url:delete_url,
|
|
|
- type: "GET",
|
|
|
- success: function(data){
|
|
|
- setTimeout(function() { location.reload(); }, 1000);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+ $('.delete_work').on('click', function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ var delete_url="{{ url('work-remove') }}/"+$(this).data('id');
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.ajax({
|
|
|
+ url:delete_url,
|
|
|
+ type: "GET",
|
|
|
+ success: function(data){
|
|
|
+ setTimeout(function() { location.reload(); }, 1000);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
- $('.delete_work').on('click', function(e) {
|
|
|
- e.preventDefault();
|
|
|
- var delete_url="{{ url('work-remove') }}/"+$(this).data('id');
|
|
|
- swal({
|
|
|
- title: "Are you sure?",
|
|
|
- text: "You will not be able to recover this data!",
|
|
|
- type: "warning",
|
|
|
- showCancelButton: true,
|
|
|
- buttonsStyling: false,
|
|
|
- confirmButtonClass: 'btn btn-primary',
|
|
|
- cancelButtonClass: 'btn btn-light',
|
|
|
- confirmButtonText: "Yes, delete!",
|
|
|
- cancelButtonText: "No, cancel!"
|
|
|
- },
|
|
|
- function(isConfirm){
|
|
|
- if(isConfirm){
|
|
|
- $.ajax({
|
|
|
- url:delete_url,
|
|
|
- type: "GET",
|
|
|
- success: function(data){
|
|
|
- setTimeout(function() { location.reload(); }, 1000);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+
|
|
|
+ $('.delete_score').on('click', function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ var delete_url="{{ url('score-remove') }}/"+$(this).data('id');
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.ajax({
|
|
|
+ url:delete_url,
|
|
|
+ type: "GET",
|
|
|
+ success: function(data){
|
|
|
+ setTimeout(function() { location.reload(); }, 1000);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
- $('.delete_score').on('click', function(e) {
|
|
|
- e.preventDefault();
|
|
|
- var delete_url="{{ url('score-remove') }}/"+$(this).data('id');
|
|
|
- swal({
|
|
|
- title: "Are you sure?",
|
|
|
- text: "You will not be able to recover this data!",
|
|
|
- type: "warning",
|
|
|
- showCancelButton: true,
|
|
|
- buttonsStyling: false,
|
|
|
- confirmButtonClass: 'btn btn-primary',
|
|
|
- cancelButtonClass: 'btn btn-light',
|
|
|
- confirmButtonText: "Yes, delete!",
|
|
|
- cancelButtonText: "No, cancel!"
|
|
|
- },
|
|
|
- function(isConfirm){
|
|
|
- if(isConfirm){
|
|
|
- $.ajax({
|
|
|
- url:delete_url,
|
|
|
- type: "GET",
|
|
|
- success: function(data){
|
|
|
- setTimeout(function() { location.reload(); }, 1000);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+
|
|
|
+ $('.delete_proposal').on('click', function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ var delete_url="{{ url('proposal-remove') }}/"+$(this).data('id');
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.ajax({
|
|
|
+ url:delete_url,
|
|
|
+ type: "GET",
|
|
|
+ success: function(data){
|
|
|
+ setTimeout(function() { location.reload(); }, 1000);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
- $('.delete_proposal').on('click', function(e) {
|
|
|
- e.preventDefault();
|
|
|
- var delete_url="{{ url('proposal-remove') }}/"+$(this).data('id');
|
|
|
- swal({
|
|
|
- title: "Are you sure?",
|
|
|
- text: "You will not be able to recover this data!",
|
|
|
- type: "warning",
|
|
|
- showCancelButton: true,
|
|
|
- buttonsStyling: false,
|
|
|
- confirmButtonClass: 'btn btn-primary',
|
|
|
- cancelButtonClass: 'btn btn-light',
|
|
|
- confirmButtonText: "Yes, delete!",
|
|
|
- cancelButtonText: "No, cancel!"
|
|
|
- },
|
|
|
- function(isConfirm){
|
|
|
- if(isConfirm){
|
|
|
- $.ajax({
|
|
|
- url:delete_url,
|
|
|
- type: "GET",
|
|
|
- success: function(data){
|
|
|
- setTimeout(function() { location.reload(); }, 1000);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+
|
|
|
+ $('.is_attended_conference').on('change', function(){
|
|
|
+ var self =$(this);
|
|
|
+ var checked =self.val();
|
|
|
+ var uid= self.data('id');
|
|
|
+
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'checked':checked,
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
+
|
|
|
+ swal({
|
|
|
+ title: "Are you sure you want to change status?",
|
|
|
+ text: "Please check before submitting!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonClass: "btn-danger",
|
|
|
+ cancelButtonClass: "btn-info",
|
|
|
+ confirmButtonText: "Yes",
|
|
|
+ cancelButtonText: "No",
|
|
|
+ closeOnConfirm: true,
|
|
|
+ closeOnCancel: true
|
|
|
+ }, function(isConfirm){
|
|
|
+
|
|
|
+ if(isConfirm){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'is_attended_conference_status']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ //window.location.reload();
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ window.location.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
|
|
|
- $('.is_attended_conference').on('change', function(){
|
|
|
- var self =$(this);
|
|
|
- var checked =self.val();
|
|
|
- var uid= self.data('id');
|
|
|
+ $('#submit_publication').on('click', function(){
|
|
|
|
|
|
- var form_data={
|
|
|
- _token :"{{csrf_token()}}",
|
|
|
- 'checked':checked,
|
|
|
- 'uid':uid,
|
|
|
- }
|
|
|
+ var publication =$('#publication').val();
|
|
|
+ var status =$('#publication_status option:selected').val();
|
|
|
|
|
|
- swal({
|
|
|
- title: "Are you sure you want to change status?",
|
|
|
- text: "Please check before submitting!",
|
|
|
- type: "warning",
|
|
|
- showCancelButton: true,
|
|
|
- confirmButtonClass: "btn-danger",
|
|
|
- cancelButtonClass: "btn-info",
|
|
|
- confirmButtonText: "Yes",
|
|
|
- cancelButtonText: "No",
|
|
|
- closeOnConfirm: true,
|
|
|
- closeOnCancel: true
|
|
|
- }, function(isConfirm){
|
|
|
-
|
|
|
- if(isConfirm){
|
|
|
- $.post("{{ route('ajax-post', ['name'=>'is_attended_conference_status']) }}", form_data, function(res){
|
|
|
- pop_up_msg(res.msg);
|
|
|
- //window.location.reload();
|
|
|
-
|
|
|
- }).fail(function(err){
|
|
|
-
|
|
|
- pop_up_msg(err_msg(err), 'error');
|
|
|
-
|
|
|
- });
|
|
|
- }else{
|
|
|
- window.location.reload();
|
|
|
+ var form_data={
|
|
|
+ _token: "{{ csrf_token() }}",
|
|
|
+ publication: publication,
|
|
|
+ status: status,
|
|
|
}
|
|
|
- });
|
|
|
- });
|
|
|
|
|
|
- $('#submit_publication').on('click', function(){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'add_proposal_publication']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
|
|
|
- var publication =$('#publication').val();
|
|
|
- var status =$('#publication_status option:selected').val();
|
|
|
+ $('#publication').val('');
|
|
|
+ $('#publication_status').val('');
|
|
|
|
|
|
- var form_data={
|
|
|
- _token: "{{ csrf_token() }}",
|
|
|
- publication: publication,
|
|
|
- status: status,
|
|
|
- }
|
|
|
+ fetch_sub_content(
|
|
|
+ '#publication_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
|
|
|
+ );
|
|
|
|
|
|
- $.post("{{ route('ajax-post', ['name'=>'add_proposal_publication']) }}", form_data, function(res){
|
|
|
- pop_up_msg(res.msg);
|
|
|
+ }).fail(function(err){
|
|
|
|
|
|
- $('#publication').val('');
|
|
|
- $('#publication_status').val('');
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
|
|
|
- fetch_sub_content(
|
|
|
- '#publication_load',
|
|
|
- "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
|
|
|
- );
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
- }).fail(function(err){
|
|
|
|
|
|
- pop_up_msg(err_msg(err), 'error');
|
|
|
+ $(".is_publication").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var value =self.val();
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'value':value,
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
|
|
|
- });
|
|
|
- });
|
|
|
-
|
|
|
- fetch_sub_content(
|
|
|
- '#publication_load',
|
|
|
- "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
|
|
|
- );
|
|
|
-
|
|
|
- fetch_sub_content(
|
|
|
- '#education_history_load',
|
|
|
- "{{ route('sub-content', ['name'=>'education_history_load']) }}"
|
|
|
- );
|
|
|
-
|
|
|
- fetch_sub_content(
|
|
|
- '#english_languge_proficiency_load',
|
|
|
- "{{ route('sub-content', ['name'=>'english_languge_proficiency_load']) }}"
|
|
|
- );
|
|
|
-
|
|
|
- fetch_sub_content(
|
|
|
- '#work_experience_load',
|
|
|
- "{{ route('sub-content', ['name'=>'work_experience_load']) }}"
|
|
|
- );
|
|
|
-
|
|
|
- $(".is_publication").on('click',function(){
|
|
|
- var self =$(this);
|
|
|
- var value =self.val();
|
|
|
- var uid= self.data('id');
|
|
|
- var form_data={
|
|
|
- _token :"{{csrf_token()}}",
|
|
|
- 'value':value,
|
|
|
- 'uid':uid,
|
|
|
- }
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'publication_status_update']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
|
|
|
- $.post("{{ route('ajax-post', ['name'=>'publication_status_update']) }}", form_data, function(res){
|
|
|
- pop_up_msg(res.msg);
|
|
|
+ }).fail(function(err){
|
|
|
|
|
|
- }).fail(function(err){
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
|
|
|
- pop_up_msg(err_msg(err), 'error');
|
|
|
+ });
|
|
|
|
|
|
+ if(value=="yes"){
|
|
|
+ $('#add_publication').css("display", "block");
|
|
|
+ }else{
|
|
|
+ $('#add_publication').css("display", "none");
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
|
|
|
- if(value=="yes"){
|
|
|
- $('#add_publication').css("display", "block");
|
|
|
- }else{
|
|
|
- $('#add_publication').css("display", "none");
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
- $(".is_education").on('click',function(){
|
|
|
- var self =$(this);
|
|
|
- var value =self.val();
|
|
|
- var uid= self.data('id');
|
|
|
- var form_data={
|
|
|
- _token :"{{csrf_token()}}",
|
|
|
- 'value':value,
|
|
|
- 'uid':uid,
|
|
|
+ $(".is_education").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var value =self.val();
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'value':value,
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
+
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'education_status_update']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ if(value=="yes"){
|
|
|
+ $('#add_education').css("display", "block");
|
|
|
+ }else{
|
|
|
+ $('#add_education').css("display", "none");
|
|
|
}
|
|
|
+
|
|
|
+ });
|
|
|
|
|
|
- $.post("{{ route('ajax-post', ['name'=>'education_status_update']) }}", form_data, function(res){
|
|
|
- pop_up_msg(res.msg);
|
|
|
+ $(".work_experience").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var value =self.val();
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'value':value,
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
|
|
|
- }).fail(function(err){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'work_experience_status_update']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ //window.location.reload();
|
|
|
|
|
|
- pop_up_msg(err_msg(err), 'error');
|
|
|
+ }).fail(function(err){
|
|
|
|
|
|
- });
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
|
|
|
- if(value=="yes"){
|
|
|
- $('#add_education').css("display", "block");
|
|
|
- }else{
|
|
|
- $('#add_education').css("display", "none");
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
- $(".work_experience").on('click',function(){
|
|
|
- var self =$(this);
|
|
|
- var value =self.val();
|
|
|
- var uid= self.data('id');
|
|
|
- var form_data={
|
|
|
- _token :"{{csrf_token()}}",
|
|
|
- 'value':value,
|
|
|
- 'uid':uid,
|
|
|
+ });
|
|
|
+
|
|
|
+ if(value=="yes"){
|
|
|
+ $('#add_work').css("display", "block");
|
|
|
+ }else{
|
|
|
+ $('#add_work').css("display", "none");
|
|
|
}
|
|
|
+
|
|
|
+ });
|
|
|
|
|
|
- $.post("{{ route('ajax-post', ['name'=>'work_experience_status_update']) }}", form_data, function(res){
|
|
|
- pop_up_msg(res.msg);
|
|
|
- //window.location.reload();
|
|
|
+ $(".is_test_score").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var value =self.val();
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'value':value,
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
|
|
|
- }).fail(function(err){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'test_score_status_update']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ //window.location.reload();
|
|
|
|
|
|
- pop_up_msg(err_msg(err), 'error');
|
|
|
+ }).fail(function(err){
|
|
|
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ if(value=="yes"){
|
|
|
+ $('#add_test_score').css("display", "block");
|
|
|
+ }else{
|
|
|
+ $('#add_test_score').css("display", "none");
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
|
|
|
- if(value=="yes"){
|
|
|
- $('#add_work').css("display", "block");
|
|
|
- }else{
|
|
|
- $('#add_work').css("display", "none");
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
- $(".is_test_score").on('click',function(){
|
|
|
- var self =$(this);
|
|
|
- var value =self.val();
|
|
|
- var uid= self.data('id');
|
|
|
- var form_data={
|
|
|
- _token :"{{csrf_token()}}",
|
|
|
- 'value':value,
|
|
|
- 'uid':uid,
|
|
|
+ $(".all_publication_delete").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'uid':uid,
|
|
|
}
|
|
|
|
|
|
- $.post("{{ route('ajax-post', ['name'=>'test_score_status_update']) }}", form_data, function(res){
|
|
|
- pop_up_msg(res.msg);
|
|
|
- //window.location.reload();
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'all_publication_delete']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ //window.location.reload();
|
|
|
+ fetch_sub_content(
|
|
|
+ '#publication_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ $(".all_education_history_delete").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
|
|
|
- }).fail(function(err){
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'all_education_history_delete']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ //window.location.reload();
|
|
|
+ fetch_sub_content(
|
|
|
+ '#education_history_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'education_history_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
|
|
|
- pop_up_msg(err_msg(err), 'error');
|
|
|
+ $(".all_work_experience_delete").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'all_work_experience_delete']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ //window.location.reload();
|
|
|
+ fetch_sub_content(
|
|
|
+ '#work_experience_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'work_experience_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
});
|
|
|
|
|
|
- if(value=="yes"){
|
|
|
- $('#add_test_score').css("display", "block");
|
|
|
- }else{
|
|
|
- $('#add_test_score').css("display", "none");
|
|
|
- }
|
|
|
+
|
|
|
+ $(".all_test_score_delete").on('click',function(){
|
|
|
+ var self =$(this);
|
|
|
+ var uid= self.data('id');
|
|
|
+ var form_data={
|
|
|
+ _token :"{{csrf_token()}}",
|
|
|
+ 'uid':uid,
|
|
|
+ }
|
|
|
+
|
|
|
+ swal({
|
|
|
+ title: "Are you sure?",
|
|
|
+ text: "You will not be able to recover this data!",
|
|
|
+ type: "warning",
|
|
|
+ showCancelButton: true,
|
|
|
+ buttonsStyling: false,
|
|
|
+ confirmButtonClass: 'btn btn-primary',
|
|
|
+ cancelButtonClass: 'btn btn-light',
|
|
|
+ confirmButtonText: "Yes, delete!",
|
|
|
+ cancelButtonText: "No, cancel!"
|
|
|
+ },
|
|
|
+ function(isConfirm){
|
|
|
+ if(isConfirm){
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'all_test_score_delete']) }}", form_data, function(res){
|
|
|
+ pop_up_msg(res.msg);
|
|
|
+ //window.location.reload();
|
|
|
+ fetch_sub_content(
|
|
|
+ '#english_languge_proficiency_load',
|
|
|
+ "{{ route('sub-content', ['name'=>'english_languge_proficiency_load']) }}"
|
|
|
+ );
|
|
|
+
|
|
|
+ }).fail(function(err){
|
|
|
+
|
|
|
+ pop_up_msg(err_msg(err), 'error');
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
- });
|
|
|
-
|
|
|
- $('.btn-proposal-open').on('click', function(){
|
|
|
- $('.proposal_info').show();
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- $('.btn-proposal-cancel').on('click', function(){
|
|
|
- $('.proposal_info').hide();
|
|
|
- });
|
|
|
-
|
|
|
- $('.btn-publication-open').on('click', function(){
|
|
|
- $('.publication_info').show();
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- $('.btn-publication-cancel').on('click', function(){
|
|
|
- $('.publication_info').hide();
|
|
|
- });
|
|
|
-
|
|
|
- $('.btn-education-open').on('click', function(){
|
|
|
- $('.education_info').show();
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- $('.btn-education-cancel').on('click', function(){
|
|
|
- $('.education_info').hide();
|
|
|
- });
|
|
|
-
|
|
|
- $('.btn-workexp-open').on('click', function(){
|
|
|
- $('.workexp_info').show();
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- $('.btn-workexp-cancel').on('click', function(){
|
|
|
- $('.workexp_info').hide();
|
|
|
- });
|
|
|
-
|
|
|
- $('.btn-score-open').on('click', function(){
|
|
|
- $('.score_info').show();
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- $('.btn-score-cancel').on('click', function(){
|
|
|
- $('.score_info').hide();
|
|
|
- });
|
|
|
-
|
|
|
- function editInstitute(row){
|
|
|
- $('#edit-institute').attr("action","{{ url('institution-update') }}/"+row.id);
|
|
|
- $('#edit-institute').find('select[name="academiclevel"]').val(row.academic_level).trigger('change');
|
|
|
- $('#edit-institute').find('input[name="subject"]').val(row.subject);
|
|
|
- $('#edit-institute').find('input[name="institution"]').val(row.institution);
|
|
|
- $('#edit-institute').find('select[name="passingyear"]').val(row.passing_year).trigger('change');
|
|
|
- $('#edit-institute').find('input[name="result"]').val(row.result);
|
|
|
- $('#edit-institute').find('select[name="startdate"]').val(new Date(row.start_date).getFullYear()).trigger('change');
|
|
|
- $('#edit-institute').find('select[name="startmonth"]').val(String(new Date(row.start_date).getUTCMonth() + 1).padStart(2, '0')).trigger('change');
|
|
|
- $('#edit-institute').find('select[name="enddate"]').val(new Date(row.end_date).getFullYear()).trigger('change');
|
|
|
- $('#edit-institute').find('select[name="endmonth"]').val(String(new Date(row.end_date).getUTCMonth() + 1).padStart(2, '0')).trigger('change');
|
|
|
- }
|
|
|
- function editWork(row){
|
|
|
- $('#edit-work').attr("action","{{ url('work-update') }}/"+row.id);
|
|
|
- $('#edit-work').find('input[name="companyname"]').val(row.company_name);
|
|
|
- $('#edit-work').find('input[name="designation"]').val(row.designation);
|
|
|
- // $('#edit-work').find('input[name="checkbox"]').val(row.checkbox);
|
|
|
- $('#edit-work').find('select[name="startdate"]').val(new Date(row.start_date).getFullYear()).trigger('change');
|
|
|
- $('#edit-work').find('select[name="startmonth"]').val(String(new Date(row.start_date).getUTCMonth() + 1).padStart(2, '0')).trigger('change');
|
|
|
- $('#edit-work').find('select[name="enddate"]').val(new Date(row.end_date).getFullYear()).trigger('change');
|
|
|
- $('#edit-work').find('select[name="endmonth"]').val(String(new Date(row.end_date).getUTCMonth() + 1).padStart(2, '0')).trigger('change');
|
|
|
- }
|
|
|
- function editScore(row){
|
|
|
- console.log(new Date(row.test_date).toDateString());
|
|
|
- $('#edit-score').attr("action","{{ url('score-update') }}/"+row.id);
|
|
|
- $('#edit-score').find('input[name="testdate"]').val(new Date(row.test_date).toDateString());
|
|
|
- $('#edit-score').find('input[name="expirationdate"]').val(new Date(row.expiration_date).toDateString());
|
|
|
- $('#edit-score').find('input[name="testname"]').val(row.test_name);
|
|
|
- $('#edit-score').find('input[name="overallscore"]').val(row.overall_score);
|
|
|
- $('#edit-score').find('input[name="listening"]').val(row.listening);
|
|
|
- $('#edit-score').find('input[name="writing"]').val(row.writing);
|
|
|
- $('#edit-score').find('input[name="reading"]').val(row.reading);
|
|
|
- $('#edit-score').find('input[name="speaking"]').val(row.speaking);
|
|
|
- }
|
|
|
- // function editProposal(row){
|
|
|
- // // console.log(row);
|
|
|
- // $('#edit-proposal').attr("action","{{ url('proposal-update') }}/"+row.id);
|
|
|
- // $('#edit-proposal').find('input[name="title"]').val(row.title);
|
|
|
- // $('#edit-proposal').find('select[name="methology"]').val(row.methology).trigger('change');
|
|
|
- // $('#edit-proposal').find('input[name="department"]').val(row.department.name).trigger('change');
|
|
|
- // $('#edit-proposal').find('select[name="status"]').val(row.status).trigger('change');
|
|
|
- // }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
@endpush
|