Нема описа

123456789101112131415161718192021222324252627282930
  1. @extends('layouts.modal')
  2. @section('modal_id'){{ 'modal-semester' }}@overwrite
  3. @section('modal_title'){{ 'Escoge un semestre' }}@overwrite
  4. @section('modal_body')
  5. <form method="POST" id="modal-semester-form">
  6. @csrf
  7. <div id="sem-select" class="mdc-select">
  8. <i class="mdc-select__dropdown-icon"></i>
  9. <select id="select-semester" class="mdc-select__native-control">
  10. <option value="" disabled selected></option>
  11. @foreach (App\Semester::all() as $semester)
  12. <option value="{{ $semester->code }}">{{ $semester->alpha }}</option>
  13. @endforeach
  14. </select>
  15. <label class="mdc-floating-label">Semestre</label>
  16. <div class="mdc-line-ripple"></div>
  17. </div>
  18. </form>
  19. @overwrite
  20. @section('modal_submit_text'){{ 'OK' }}@overwrite
  21. @section('modal_submit')
  22. function(){document.getElementById('modal-semester-form').submit()}
  23. @overwrite