Нема описа

edit.blade.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @extends('layouts.modal')
  2. @section('modal_id'){{ 'modal-professor-edit' }}@overwrite
  3. @section('modal_title'){{ 'Editando profesor' }}@overwrite
  4. @section('modal_body')
  5. <form method="POST" enctype="multipart/form-data" id='modal-professor-edit-form'>
  6. @method('PATCH')
  7. @csrf
  8. <input type="hidden" name="id">
  9. <div class="form-group row">
  10. <div class="col-4">
  11. <label for="modal-professor-edit-fname-field">Nombre:</label>
  12. <input id="modal-professor-edit-fname-field" type="text" class="form-control" name="first_name" maxlength="255">
  13. </div>
  14. <div class="col-8">
  15. <label for="modal-professor-edit-lname-field">Apellido:</label>
  16. <input id="modal-professor-edit-lname-field" type="text" class="form-control" name="last_name" maxlength="255">
  17. </div>
  18. </div>
  19. <div class="row">
  20. <div class="form-group col-sm-8">
  21. <label for="modal-professor-edit-email-field">Email:</label>
  22. <input id="modal-professor-edit-email-field" type="email" name="email">
  23. </div>
  24. <div class="form-group col-4">
  25. <label for="modal-professor-edit-type-field">Tipo:</label>
  26. <select id="modal-professor-edit-type-field" class="form-control" name="type">
  27. <option value="plantilla">Plantilla</option>
  28. <option value="contrato">Contrato</option>
  29. <option value="ta">T.A.</option>
  30. </select>
  31. </div>
  32. </div>
  33. </form>
  34. @overwrite
  35. @section('modal_submit_text'){{ 'Editar' }}@overwrite
  36. @section('modal_submit')
  37. function(){document.getElementById('modal-professor-edit-form').submit()}
  38. @overwrite