source: src/main/resources/templates/subject/form_exam.html

Last change on this file was fdfbdde, checked in by Stojilkova Sara <sara.stojilkova.students.finki.ukim.mk>, 9 months ago

Initial commit

  • Property mode set to 100644
File size: 4.2 KB
Line 
1<!doctype html>
2<html lang="en" xmlns:th="http://www.thymeleaf.org">
3<head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>Subject Page</title>
7 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
8 integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
9 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
10
11</head>
12<body>
13
14<div th:insert="layout/navbar.html :: navbar"></div>
15
16
17<div class="container d-flex justify-content-center align-items-center vh-100">
18 <div class="card">
19 <div class="card-body">
20 <form method="post" action="/add/subject/exam">
21
22 <div class="row mb-3">
23 <label for="subject" class="col-sm-4 col-form-label">Choose subject</label>
24 <div class="col-sm-8">
25 <select name="subject" id="subject">
26 <option th:each="subject : ${subjects}" th:text="${subject.name}"
27 th:value="|${subject.id.id} ${subject.id.termEntity.termId.schoolYear.schoolYearId.studentId.studentId} ${subject.id.termEntity.termId.schoolYear.schoolYearId.startingYear} ${subject.id.termEntity.termId.schoolYear.schoolYearId.finishingYear} ${subject.id.termEntity.termId.termType}|"
28 ></option>
29 </select>
30 </div>
31 </div>
32
33 <div class="row mb-3">
34 <label for="place" class="col-sm-4 col-form-label">Choose place</label>
35 <div class="col-sm-8">
36 <select name="place" id="place">
37 <option th:each="place : ${places}" th:text="|${place.buildingName} ${place.roomName}|"
38 th:value="${place.id}"
39 ></option>
40 </select>
41 </div>
42 </div>
43
44 <div class="row mb-3">
45 <label for="name" class="col-sm-4 col-form-label">Enter exam name</label>
46 <div class="col-sm-8">
47 <input type="text" class="form-control" id="name" name="name" placeholder="Enter exam name">
48 </div>
49 </div>
50
51 <div class="row mb-3">
52 <label for="description" class="col-sm-4 col-form-label">Enter exam description</label>
53 <div class="col-sm-8">
54 <textarea class="form-control" id="description" name="description"
55 placeholder="Enter task description"></textarea>
56 </div>
57 </div>
58
59 <div class="row mb-3">
60 <label for="date" class="col-sm-4 col-form-label">Enter exam date</label>
61 <div class="col-sm-8">
62 <input type="date" class="form-control" id="date" name="date">
63 </div>
64 </div>
65
66 <div class="row mb-3">
67 <label for="start_time" class="col-sm-4 col-form-label">Enter exam start time</label>
68 <div class="col-sm-8">
69 <input type="time" class="form-control" id="start_time" name="startTime">
70 </div>
71 </div>
72
73 <div class="row mb-3">
74 <label for="end_time" class="col-sm-4 col-form-label">Enter exam end time</label>
75 <div class="col-sm-8">
76 <input type="time" class="form-control" id="end_time" name="endTime">
77 </div>
78 </div>
79
80 <div class="d-grid">
81 <button type="submit" class="btn btn-primary">Add Exam</button>
82 </div>
83 </form>
84 </div>
85 </div>
86</div>
87
88
89
90<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
91 integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
92 crossorigin="anonymous"></script>
93</body>
94</html>
Note: See TracBrowser for help on using the repository browser.