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;"> <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="/admin/allTeachers"
|
---|
44 | style="color: #ffcc00; text-shadow: 2px 2px 2px #A3A3A3;"><p style="color: floralwhite;">
|
---|
45 | НАСТАВНИЦИ</p></a>
|
---|
46 | </li>
|
---|
47 | <li class="nav-item">
|
---|
48 | <a class="nav-link" href="/admin/allSubjects">ПРЕДМЕТИ</a>
|
---|
49 | </li>
|
---|
50 | <li class="nav-item">
|
---|
51 | <a class="nav-link" href="/admin/allStudents">УЧЕНИЦИ</a>
|
---|
52 | </li>
|
---|
53 | <li class="nav-item">
|
---|
54 | <a class="nav-link" href="/logout">ОДЈАВИ СЕ</a>
|
---|
55 | </li>
|
---|
56 | </ul>
|
---|
57 | </div>
|
---|
58 | </nav>
|
---|
59 | </section>
|
---|
60 | <section id="banner" style="position: relative; top:-30px;">
|
---|
61 | <div class="container" style="background-color: floralwhite; border-radius: 5px;
|
---|
62 | box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;">
|
---|
63 | <div class="row">
|
---|
64 | <h1 class="promo-title text-center" style="color: #000029">НАСТАВНИЦИ</h1>
|
---|
65 | </div>
|
---|
66 | <div class="row">
|
---|
67 | <form class="row" th:action="@{'/admin/allTeachers'}">
|
---|
68 | <div class="form-group col-1 ml-1"></div>
|
---|
69 | <div class="form-group col-9">
|
---|
70 | <input class="form-control transparent-input border-bottom" type="text"
|
---|
71 | placeholder="Пребарувај наставник..." name="ime"/>
|
---|
72 | </div>
|
---|
73 | <div class="form-group col">
|
---|
74 | <button id="filter" type="submit" class="btn btn-outline-secondary btn-block">
|
---|
75 | <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
---|
76 | class="bi bi-search" viewBox="0 0 16 16">
|
---|
77 | <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"/>
|
---|
78 | </svg>
|
---|
79 | Пребарај
|
---|
80 | </button>
|
---|
81 | </div>
|
---|
82 | </form>
|
---|
83 | </div>
|
---|
84 | <div class="row">
|
---|
85 | <table class="table table-hover">
|
---|
86 | <thead>
|
---|
87 | <tr>
|
---|
88 | <th scope="col">Име</th>
|
---|
89 | <th scope="col">Презиме</th>
|
---|
90 | <th scope="col">E-mail</th>
|
---|
91 | </tr>
|
---|
92 | </thead>
|
---|
93 | <tbody>
|
---|
94 | <tr th:each="t : ${teachers}">
|
---|
95 | <td class="col-2">
|
---|
96 | <th:block id="teacherName" th:text="${t.getName()}"
|
---|
97 | th:style="'font-size:25px; font-weight:bold;'"/>
|
---|
98 | </td>
|
---|
99 | <td class="col-2">
|
---|
100 | <th:block id="teacherSurname" th:text="${t.getSurname()}"
|
---|
101 | th:style="'font-size:25px; font-weight:bold;'"/>
|
---|
102 | </td>
|
---|
103 | <td class="col-3">
|
---|
104 | <th:block id="teacherEmail" th:text="${t.getEmail()}"
|
---|
105 | th:style="'font-size:25px; font-weight:bold;'"/>
|
---|
106 | </td>
|
---|
107 |
|
---|
108 |
|
---|
109 | <td class="col-2">
|
---|
110 |
|
---|
111 | <div th:if="${t.isEnabled()}==false">
|
---|
112 | <a class="btn btn-outline-secondary btn-block btn-sm"
|
---|
113 | th:href="@{'/admin/activate/{id}' (id=${t.getId()})}"
|
---|
114 | th:method="POST" th:value="${t.getId()}">
|
---|
115 | <p>Активирај корисник</p>
|
---|
116 | </a>
|
---|
117 | </div>
|
---|
118 | <div th:if="${t.isEnabled()==true}">
|
---|
119 | <button type="button" class="btn btn-outline-success btn-sm" disabled>Корисникот е активиран<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check-all" viewBox="0 0 16 16">
|
---|
120 | <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"/>
|
---|
121 | </svg></button>
|
---|
122 | </div>
|
---|
123 |
|
---|
124 | </td>
|
---|
125 | <td class="col-2">
|
---|
126 | <div>
|
---|
127 | <a class="btn btn-outline-danger" th:href="@{'/teachers/delete/{id}' (id=${t.getId()})}"
|
---|
128 | th:method="POST" th:value="${t.getId()}"><i class="bi bi-trash">
|
---|
129 | <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
---|
130 | class="bi bi-trash" viewBox="0 0 16 16">
|
---|
131 | <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"/>
|
---|
132 | <path fill-rule="evenodd"
|
---|
133 | 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"/>
|
---|
134 | </svg>
|
---|
135 | </i></a>
|
---|
136 | </div>
|
---|
137 | </td>
|
---|
138 | </tr>
|
---|
139 | </tbody>
|
---|
140 | </table>
|
---|
141 | </div>
|
---|
142 | </div>
|
---|
143 | <img src="/img/wavebook.png" alt="Wave" class="bottom-img" style="position: relative; bottom: -60px;">
|
---|
144 | </section>
|
---|
145 | </body>
|
---|
146 | </html>
|
---|
147 |
|
---|