source: src/main/resources/templates/subject/form_class.html@ fdfbdde

Last change on this file since fdfbdde 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.9 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/class">
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 class name</label>
46 <div class="col-sm-8">
47 <input type="text" class="form-control" id="name" name="name" placeholder="Enter class name">
48 </div>
49 </div>
50
51 <div class="row mb-3">
52 <label for="description" class="col-sm-4 col-form-label">Enter class description</label>
53 <div class="col-sm-8">
54 <textarea class="form-control" id="description" name="description"
55 placeholder="Enter class description"></textarea>
56 </div>
57 </div>
58
59 <div class="row mb-3">
60 <label for="startingDate" class="col-sm-4 col-form-label">Enter starting date</label>
61 <div class="col-sm-8">
62 <input type="date" class="form-control" id="startingDate" name="startingDate">
63 </div>
64 </div>
65
66 <div class="row mb-3">
67 <label for="endingDate" class="col-sm-4 col-form-label">Enter ending date</label>
68 <div class="col-sm-8">
69 <input type="date" class="form-control" id="endingDate" name="endingDate">
70 </div>
71 </div>
72
73 <div class="row mb-3">
74 <label for="day" class="col-sm-4 col-form-label">Enter day</label>
75 <div class="col-sm-8">
76 <input type="text" class="form-control" id="day" name="day" placeholder="Enter day">
77 </div>
78 </div>
79
80 <div class="row mb-3">
81 <label for="start_time" class="col-sm-4 col-form-label">Enter exam start time</label>
82 <div class="col-sm-8">
83 <input type="time" class="form-control" id="start_time" name="startTime">
84 </div>
85 </div>
86
87 <div class="row mb-3">
88 <label for="end_time" class="col-sm-4 col-form-label">Enter exam end time</label>
89 <div class="col-sm-8">
90 <input type="time" class="form-control" id="end_time" name="endTime">
91 </div>
92 </div>
93
94
95 <div class="d-grid">
96 <button type="submit" class="btn btn-primary">Add Class</button>
97 </div>
98 </form>
99 </div>
100 </div>
101</div>
102
103
104
105<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
106 integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
107 crossorigin="anonymous"></script>
108</body>
109</html>
Note: See TracBrowser for help on using the repository browser.