edit_feedback_msg_form.blade.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <form method="POST" action="{{route('ajax-post', ['name'=>'update_feedback_msg'])}}" class="update_feedback">
  2. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  3. <input type="hidden" name="edit_id" value="{{$edit->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. <textarea class="form-control" name="feedback_msg" id="message" required="">{{$edit->feedback_msg }}</textarea>
  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. $('.update_feedback').on('submit', function(event){
  24. event.preventDefault();
  25. var self = $(this);
  26. ajax_form(self, function(self){
  27. window.location.reload();
  28. });
  29. });
  30. $('.btn-cancel').on('click', function(){
  31. $('.open_feedback_msg_edit_info_div_inner').addClass('d-none')
  32. });
  33. });
  34. </script>