source: src/main/resources/templates/homeworksList.html@ d3cf3a1

Last change on this file since d3cf3a1 was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 10.4 KB
Line 
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</head>
19<body>
20<section class="nav-bar">
21 <nav class="navbar navbar-expand-lg navbar-light">
22 <div class="ml-1"></div>
23 <a class="navbar-brand" href="#">
24 <p style="font-weight: bold; color: #FFCC00FF;">&nbsp;&nbsp;&nbsp;<svg xmlns="http://www.w3.org/2000/svg"
25 width="26" height="26"
26 fill="currentColor"
27 class="bi bi-mortarboard-fill"
28 viewBox="0 0 16 16">
29 <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"/>
30 <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"/>
31 </svg>
32 EDUCATUM
33 </p>
34 </a>
35 <div class="col-6"></div>
36 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
37 aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
38 <i class="fa fa-bars"></i>
39 </button>
40 <div class="collapse navbar-collapse justify-content-end navbarNav">
41 <ul class="navbar-nav mr-auto">
42 <li class="nav-item">
43 <a class="nav-link" href="/students/listSubjectsTeachers?subjectID=0"
44 >НАСТАВНИЦИ</a>
45 </li>
46 <li class="nav-item">
47 <a class="nav-link" href="/students/homeWork"
48 style="color: #ffcc00; text-shadow: 2px 2px 2px #A3A3A3;">
49 <p style="color: floralwhite;">ДОМАШНИ ЗАДАЧИ</p>
50 </a>
51 </li>
52 <li class="nav-item">
53 <a class="nav-link" href="/students/showProfileStudent">ПРОФИЛ</a>
54 </li>
55 <li class="nav-item">
56 <a class="nav-link" href="/logout">ОДЈАВИ СЕ</a>
57 </li>
58 </ul>
59 </div>
60 </nav>
61
62</section>
63<section id="banner" style="position: relative; top:-30px;">
64 <div class="container" style="background-color: floralwhite; border-radius: 5px;
65 box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;">
66 <div class="row">
67 <h1 class="promo-title text-center" style="color: #000029">ДОМАШНИ ЗАДАЧИ</h1>
68 </div>
69 <div class="row">
70 <form class="row" th:action="@{'/students/homeWork'}">
71 <div class="form-group col-1 ml-1"></div>
72 <div class="form-group col-9">
73 <input class="form-control transparent-input border-bottom" type="text"
74 placeholder="Пребарувај домашни задачи..." name="desc"/>
75 </div>
76 <div class="form-group col">
77 <button id="filter" type="submit" class="btn btn-outline-secondary btn-block">
78 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
79 class="bi bi-search" viewBox="0 0 16 16">
80 <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"/>
81 </svg>
82 Пребарај
83 </button>
84 </div>
85 </form>
86 </div>
87 <div class="row">
88 <div class="col-1"></div>
89 <div class="col">
90 <!-- Button trigger modal -->
91 <button type="button" class="btn btn-link" data-toggle="modal"
92 th:attr="data-target='#exampleModalCenter'">
93 + Нова домашна задача
94 </button>
95 <!-- Modal -->
96 <div class="modal fade" th:id="*{'exampleModalCenter'}" tabindex="-1" role="dialog"
97 aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
98 <div class="modal-dialog modal-dialog-centered" role="document">
99 <div class="modal-content">
100 <div class="modal-header">
101 <h5 class="modal-title" id="exampleModalLongTitle" style="color: #000029">Додавање на
102 нова домашна задача</h5>
103 </div>
104 <div class="modal-body">
105 <form method="POST" th:action="@{'/students/add/homework'}">
106 <div>
107 <input class="form-control transparent-input border-bottom" type="text"
108 id="desc"
109 name="desc"
110 placeholder="Опис за домашното"
111 required>
112 <hr/>
113
114
115 <select class="form-select form-select-lg mb-3"
116 aria-label=".form-select-lg example" id="teacher"
117 name="teacher">
118 <option value="none" selected>Избери наставник</option>
119 <option th:each="t : ${teachersByStudent}"
120 th:value="${t.getId()}"
121 th:text="${t.getFullName()}">
122 </option>
123
124 </select>
125
126 <hr/>
127
128 <input class="form-control transparent-input border-bottom" type="text"
129 id="topic"
130 name="topic"
131 placeholder="Тема за часот"
132 required>
133 </div>
134 <button id="submit" type="submit" class="m-1 btn btn-outline-primary">Додади
135 </button>
136 </form>
137 </div>
138 <div class="modal-footer">
139 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
140 </div>
141 </div>
142 </div>
143 </div>
144 </div>
145 </div>
146 <div class="row">
147 <table class="table table-hover">
148 <thead>
149 <tr>
150 <th scope="col">Опис на домашната задача</th>
151 </tr>
152 </thead>
153 <tbody>
154 <tr th:each="h : ${homeworks}">
155 <td class="col-2">
156 <th:block id="subjectName" th:text="${h.getDescription()}"
157 th:style="'font-size:25px; font-weight:bold;'"/>
158 </td>
159 <td class="col-2">
160
161<!-- <div th:if="${h.isDone()}==false">-->
162<!-- <a class="btn btn-outline-secondary btn-block btn-sm"-->
163<!-- th:href="@{'/students/done/{id}' (id=${h.getId()})}"-->
164<!-- th:method="POST" th:value="${h.getId()}">-->
165<!-- <p>Означи го завршено домашното</p>-->
166<!-- </a>-->
167<!-- </div>-->
168<!-- <div th:if="${h.isDone()==true}">-->
169<!-- <button type="button" class="btn btn-outline-success btn-sm" disabled>Домашното е завршено-->
170<!-- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"-->
171<!-- class="bi bi-check-all" viewBox="0 0 16 16">-->
172<!-- <path d="M8.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L2.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093L8.95 4.992a.252.252 0 0 1 .02-.022zm-.92 5.14.92.92a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 1 0-1.091-1.028L9.477 9.417l-.485-.486-.943 1.179z"/>-->
173<!-- </svg>-->
174<!-- </button>-->
175<!-- </div>-->
176
177 </td>
178 </tr>
179 </tbody>
180 </table>
181 </div>
182 </div>
183 <img src="/img/wavebook.png" alt="Wave" class="bottom-img" style="position: relative; bottom: -60px;">
184</section>
185</body>
186</html>
187
188
Note: See TracBrowser for help on using the repository browser.