edit_research_form.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <form method="POST" action="{{route('ajax-post', ['name'=>'edit_research_save'])}}" class="edit_res_info_form">
  2. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  3. <input type="hidden" name="edit_id" value="{{$edit_research->id}}">
  4. <div class="col-md-12">
  5. <div class="mb-2">
  6. <label class="form-label config"></label>
  7. <div class="form-icon position-relative">
  8. <input type="text" class="form-control" placeholder="Research" name="research" value="{{$edit_research->research}}" required="" style="font-size: 13px;">
  9. </div>
  10. </div>
  11. </div>
  12. <div class="col-md-12">
  13. <div class="text-end">
  14. <button type="button" class="btn cancel_button mr-1 btn-cancel close_form" >
  15. <i aria-hidden="true" class="fa fa-refresh"></i>
  16. </button>
  17. <button class="btn btn2">Update</button>
  18. </div>
  19. </div>
  20. </form>
  21. <script>
  22. $(function(){
  23. $('.edit_res_info_form').on('submit', function(event){
  24. event.preventDefault();
  25. var self = $(this);
  26. ajax_form(self, function(self){
  27. $('#load_research_interest').empty();
  28. fetch_sub_content(
  29. '#load_research_interest',
  30. "{{ route('sub-content', ['name'=>'load_research_interest']) }}"
  31. );
  32. });
  33. });
  34. $('.btn-cancel').on('click', function(){
  35. $('.open_research_edit_info_div_inner').addClass('d-none')
  36. });
  37. });
  38. </script>