Нет описания

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @extends('layouts.modal')
  2. @section('modal_id'){{ 'modal-semester-clone' }}@overwrite
  3. @section('modal_title'){{ 'Escoge un semestre' }}@overwrite
  4. @section('modal_body')
  5. <form method="POST" id="modal-semester-clone-form">
  6. @csrf
  7. <div class="row">
  8. <div class="col">
  9. <div class="mdc-form-field">
  10. <div class="mdc-select" id="sem-clone-select">
  11. <i class="mdc-select__dropdown-icon"></i>
  12. <select id="select-semester" class="mdc-select__native-control">
  13. <option value="" disabled selected></option>
  14. @foreach (App\Semester::all() as $semester)
  15. <option value="{{ $semester->code }}">{{ $semester->alpha }}</option>
  16. @endforeach
  17. </select>
  18. <label class="mdc-floating-label">Semestre a copiar</label>
  19. <div class="mdc-line-ripple"></div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <br>
  25. <div class="row">
  26. <div class="col">
  27. <div class="mdc-form-field">
  28. <div class="mdc-text-field mdc-text-field--no-label" id="semester-clone-form-new_semester" data-mdc-auto-init="MDCTextField">
  29. <input type="text" class="mdc-text-field__input" name="new_semester" maxlength="3">
  30. <div class="mdc-line-ripple"></div>
  31. </div>
  32. <div class="mdc-text-field-helper-line">
  33. <p class="mdc-text-field-helper-text mdc-text-field-helper-text--persistent">
  34. Codigo del semestre nuevo
  35. </p>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="col">
  40. <div class="mdc-form-field">
  41. <div class="mdc-text-field mdc-text-field--no-label" id="semester-clone-form-new_alpha" data-mdc-auto-init="MDCTextField">
  42. <input type="text" class="mdc-text-field__input" name="new_alpha" >
  43. <div class="mdc-line-ripple"></div>
  44. </div>
  45. <div class="mdc-text-field-helper-line">
  46. <p class="mdc-text-field-helper-text mdc-text-field-helper-text--persistent">
  47. Descripcion del semestre e.g. 20XX-20XX SEM 1
  48. </p>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </form>
  54. @overwrite
  55. @section('modal_submit_text'){{ 'OK' }}@overwrite
  56. @section('modal_submit')
  57. function(){document.getElementById('modal-semester-clone-form').submit()}
  58. @overwrite