暂无描述

edit.blade.php 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @extends('layouts.modal')
  2. @section('modal_id'){{ 'modal-section-edit' }}@overwrite
  3. @section('modal_title'){{ 'Editando seccion' }}@overwrite
  4. @section('modal_body')
  5. <form method="POST" action="" enctype="multipart/form-data" id='modal-section-edit-form'>
  6. @method('PATCH')
  7. @csrf
  8. <div class="row">
  9. <div class="form-group col-4">
  10. <label for="modal-section-edit-code-field">Numero de Seccion:</label>
  11. <input id="modal-section-edit-code-field" type="text" class="form-control" name="code" minlength="3" maxlength="3">
  12. </div>
  13. <div class="form-group col-8">
  14. <label for="modal-course-edit-syllabus-field">Prontuario:</label>
  15. <input type="file" id="modal-section-edit-syllabus-field" name="syllabus">
  16. </div>
  17. </div>
  18. <div class="row">
  19. <div class="form-group col-6">
  20. <label for="modal-section-edit-credits-field">Creditos:</label>
  21. <input type="number" id="modal-section-edit-credits-field" class="form-control" name="credits" step="0.01">
  22. </div>
  23. <div class="form-group col-6">
  24. <label for="modal-section-edit-student_count-field"># de Estudiantes:</label>
  25. <input type="number" id="modal-section-edit-student_count-field" class="form-control" name="student_count" step="1">
  26. </div>
  27. </div>
  28. <div class="row">
  29. <div class="form-group col-8">
  30. <label for="modal-section-edit-prof-field">Profesores (ctrl + click para multiples):</label>
  31. <select id="modal-section-edit-prof-field" class="form-control" name="professor_id[]" multiple>
  32. @foreach (App\Professor::orderBy('last_name')->get() as $professor)
  33. <option value="{{ $professor->id }}">
  34. {{ $professor->last_name . ', ' . $professor->first_name }}
  35. </option>
  36. @endforeach
  37. </select>
  38. </div>
  39. </div>
  40. </form>
  41. @overwrite
  42. @section('modal_submit_text'){{ 'Editar' }}@overwrite
  43. @section('modal_submit')
  44. function(){document.getElementById('modal-section-edit-form').submit()}
  45. @overwrite