1 | <!DOCTYPE html>
|
---|
2 | <html lang="en" xmlns:th="http://www.thymeleaf.org">
|
---|
3 | <head>
|
---|
4 | <meta charset="UTF-8">
|
---|
5 | <title>EDUCATUM - Предмети</title>
|
---|
6 | <link rel="stylesheet" href="/css/style.css">
|
---|
7 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
|
---|
8 | rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
|
---|
9 | crossorigin="anonymous">
|
---|
10 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
|
---|
11 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
|
---|
12 | integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
|
---|
13 | crossorigin="anonymous"></script>
|
---|
14 | <link rel="stylesheet"
|
---|
15 | href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/fontawesome.min.css">
|
---|
16 | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
|
---|
17 | <script th:inline="javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
---|
18 |
|
---|
19 | <style>
|
---|
20 | * {
|
---|
21 | box-sizing: border-box;
|
---|
22 | }
|
---|
23 |
|
---|
24 | .no-gutters {
|
---|
25 | background: floralwhite;
|
---|
26 | border-radius: 5px;
|
---|
27 | box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
|
---|
28 | }
|
---|
29 |
|
---|
30 | body {
|
---|
31 | background: linear-gradient(to right, #93A3CE, #1C294E);
|
---|
32 | color: #000029;
|
---|
33 | }
|
---|
34 |
|
---|
35 | img {
|
---|
36 | width: 100%;
|
---|
37 | height: 100%;
|
---|
38 | object-fit: fill;
|
---|
39 | position: relative;
|
---|
40 | bottom: -30px;
|
---|
41 | }
|
---|
42 | </style>
|
---|
43 |
|
---|
44 | </head>
|
---|
45 | <body>
|
---|
46 | <section class="nav-bar">
|
---|
47 | <nav class="navbar navbar-expand-lg navbar-light">
|
---|
48 | <div class="ml-1"></div>
|
---|
49 | <a class="navbar-brand" href="#">
|
---|
50 | <p style="font-weight: bold; color: #FFCC00FF;">
|
---|
51 |
|
---|
52 | <svg xmlns="http://www.w3.org/2000/svg"
|
---|
53 | width="26" height="26"
|
---|
54 | fill="currentColor"
|
---|
55 | class="bi bi-mortarboard-fill"
|
---|
56 | viewBox="0 0 16 16">
|
---|
57 | <path d="M8.211 2.047a.5.5 0 0 0-.422 0l-7.5 3.5a.5.5 0 0 0 .025.917l7.5 3a.5.5 0 0 0 .372 0L14 7.14V13a1 1 0 0 0-1 1v2h3v-2a1 1 0 0 0-1-1V6.739l.686-.275a.5.5 0 0 0 .025-.917l-7.5-3.5Z"/>
|
---|
58 | <path d="M4.176 9.032a.5.5 0 0 0-.656.327l-.5 1.7a.5.5 0 0 0 .294.605l4.5 1.8a.5.5 0 0 0 .372 0l4.5-1.8a.5.5 0 0 0 .294-.605l-.5-1.7a.5.5 0 0 0-.656-.327L8 10.466 4.176 9.032Z"/>
|
---|
59 | </svg>
|
---|
60 | EDUCATUM
|
---|
61 | </p>
|
---|
62 | </a>
|
---|
63 | <div class="col-6"></div>
|
---|
64 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
---|
65 | aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
---|
66 | <i class="fa fa-bars"></i>
|
---|
67 | </button>
|
---|
68 | <div class="collapse navbar-collapse justify-content-end navbarNav">
|
---|
69 | <ul class="navbar-nav mr-auto">
|
---|
70 | <li class="nav-item">
|
---|
71 | <a class="nav-link" href="/teachers/allClasses">ЧАСОВИ</a>
|
---|
72 | </li>
|
---|
73 | <li class="nav-item">
|
---|
74 | <a class="nav-link" href="/teachers/allSubjects"
|
---|
75 | style="color: #ffcc00; text-shadow: 2px 2px 2px #A3A3A3;">
|
---|
76 | <p style="color: floralwhite;">ПРЕДМЕТИ</p>
|
---|
77 | </a>
|
---|
78 | </li>
|
---|
79 | <li class="nav-item">
|
---|
80 | <a class="nav-link" href="/teachers/allStudents">УЧЕНИЦИ</a>
|
---|
81 | </li>
|
---|
82 | <li class="nav-item">
|
---|
83 | <a class="nav-link" href="/teachers/showProfile">ПРОФИЛ</a>
|
---|
84 | </li>
|
---|
85 | <li class="nav-item">
|
---|
86 | <a class="nav-link" href="/logout">ОДЈАВИ СЕ</a>
|
---|
87 | </li>
|
---|
88 | </ul>
|
---|
89 | </div>
|
---|
90 | </nav>
|
---|
91 |
|
---|
92 | </section>
|
---|
93 | <section id="banner" style="position: relative; top:-30px;">
|
---|
94 | <div class="container" style="background-color: floralwhite; border-radius: 5px;
|
---|
95 | box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;">
|
---|
96 | <div class="row">
|
---|
97 | <h1 class="promo-title text-center" style="color: #000029">ПРЕДМЕТИ КОИ ГИ ПРЕДАВАТЕ</h1>
|
---|
98 | </div>
|
---|
99 | <div class="row">
|
---|
100 | <form class="row" th:action="@{'/teachers/allSubjects'}">
|
---|
101 | <div class="form-group col-1 ml-1"></div>
|
---|
102 | <div class="form-group col-9">
|
---|
103 | <input class="form-control transparent-input border-bottom" type="text"
|
---|
104 | placeholder="Пребарувај предмет..." name="ime"/>
|
---|
105 | </div>
|
---|
106 | <div class="form-group col">
|
---|
107 | <button id="filter" type="submit" class="btn btn-outline-secondary btn-block">
|
---|
108 | <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
---|
109 | class="bi bi-search" viewBox="0 0 16 16">
|
---|
110 | <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
|
---|
111 | </svg>
|
---|
112 | Пребарај
|
---|
113 | </button>
|
---|
114 | </div>
|
---|
115 | </form>
|
---|
116 | </div>
|
---|
117 | <div class="row">
|
---|
118 | <div class="col-1"></div>
|
---|
119 | <div class="col">
|
---|
120 | <button type="button" class="btn btn-link" data-toggle="modal"
|
---|
121 | th:attr="data-target='#exampleModalCenter'">
|
---|
122 | + Нов предмет
|
---|
123 | </button>
|
---|
124 | <div class="modal fade" th:id="*{'exampleModalCenter'}" tabindex="-1" role="dialog"
|
---|
125 | aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
|
---|
126 | <div class="modal-dialog modal-dialog-centered" role="document">
|
---|
127 | <div class="modal-content">
|
---|
128 | <div class="modal-header">
|
---|
129 | <h5 class="modal-title" id="exampleModalLongTitle" style="color: #000029">Додавање на
|
---|
130 | нов предмет</h5>
|
---|
131 | </div>
|
---|
132 | <div class="modal-body">
|
---|
133 | <form method="POST" th:action="@{'/teachers/addSubject'}">
|
---|
134 | <div>
|
---|
135 | <select id="subjectId" name="subjectId" class="form-select form-select-lg mb-3"
|
---|
136 | aria-label=".form-select-lg example">
|
---|
137 | <option value="" selected disabled hidden>Изберете предмет</option>
|
---|
138 | <option th:each="s : ${allSubjects}"
|
---|
139 | th:value="${s.getId()}"
|
---|
140 | th:text="${s.getName()}"></option>
|
---|
141 |
|
---|
142 | </select>
|
---|
143 | <textarea name="desc" rows="1" class="form-control">Опис...</textarea>
|
---|
144 | </div>
|
---|
145 | <button id="submit" type="submit" class="m-1 btn btn-outline-primary">Зачувај
|
---|
146 | </button>
|
---|
147 | </form>
|
---|
148 | </div>
|
---|
149 | <div class="modal-footer">
|
---|
150 | <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
---|
151 | </div>
|
---|
152 | </div>
|
---|
153 | </div>
|
---|
154 | </div>
|
---|
155 | </div>
|
---|
156 | </div>
|
---|
157 | <div class="row">
|
---|
158 | <table class="table table-hover">
|
---|
159 | <thead>
|
---|
160 | <tr>
|
---|
161 | <th scope="col">Име на предметот</th>
|
---|
162 | </tr>
|
---|
163 | </thead>
|
---|
164 | <tbody>
|
---|
165 | <tr th:each="s : ${subjects}">
|
---|
166 | <td class="col-2">
|
---|
167 | <th:block id="subjectName" th:text="${s.getName()}"
|
---|
168 | th:style="'font-size:25px; font-weight:bold;'"/>
|
---|
169 | </td>
|
---|
170 | <td class="col-2">
|
---|
171 | <div>
|
---|
172 | <a class="btn btn-outline-danger" th:href="@{'/subjects/delete/{id}' (id=${s.getId()})}"
|
---|
173 | th:method="POST" th:value="${s.getId()}"><i class="bi bi-trash">Избриши предмет
|
---|
174 | <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
---|
175 | class="bi bi-trash" viewBox="0 0 16 16">
|
---|
176 | <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
|
---|
177 | <path fill-rule="evenodd"
|
---|
178 | d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
|
---|
179 | </svg>
|
---|
180 | </i></a>
|
---|
181 | </div>
|
---|
182 | </td>
|
---|
183 | </tr>
|
---|
184 | </tbody>
|
---|
185 | </table>
|
---|
186 | </div>
|
---|
187 | </div>
|
---|
188 | <img src="/img/wavebook.png" alt="Wave" class="bottom-img" style="position: relative; bottom: -60px;">
|
---|
189 | </section>
|
---|
190 | </body>
|
---|
191 | </html>
|
---|