taskForm.blade.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="col-sm" id="taskFormContainer">
  2. <h2>Создание</h2>
  3. <button type="button" class="btn btn-primary" onclick="newTask()">Новое задание</button>
  4. <form class="mb-3" id="taskForm">
  5. @csrf
  6. <div class='errorsContainer' role='alert'></div>
  7. <label for="id">
  8. <input class="form-control" type="number" hidden id="task_id">
  9. </label>
  10. <label for="name">
  11. Название задания:
  12. <input class="form-control" type="text" id="name" value="">
  13. </label>
  14. <label for="type">
  15. Тема:
  16. <select class="form-control" id="type_name">
  17. @foreach($taskTypes as $taskType)
  18. <option>{{$taskType->name}}</option>
  19. @endforeach
  20. </select>
  21. </label>
  22. <label for="place">
  23. Место:
  24. <input class="form-control" type="text" id="place" value="">
  25. </label>
  26. <label for="date">
  27. Дата:
  28. <input class="form-control" type="date" id="date" value="">
  29. </label>
  30. <label for="time">
  31. Время:
  32. <input class="form-control" type="time" id="time" value="">
  33. </label>
  34. <label for="duration">
  35. Длительность:
  36. <input class="form-control" type="time" id="duration" value="">
  37. </label>
  38. <label for="comment">
  39. Комментарий:
  40. <textarea class="form-control" type="text" id="comment"></textarea>
  41. </label>
  42. <button class="btn btn-primary" onclick="saveTask()" type="button">Сохранить задание</button>
  43. </form>
  44. </div>