source: src/main/resources/templates/fragments/header.html@ 2a552fe

main
Last change on this file since 2a552fe was 60e9cc1, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 21 months ago

Sredeni zabeleshki po diskusija

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<header xmlns:sec="http://www.w3.org/1999/xhtml" >
2 <nav class="navbar navbar-expand-md navbar-dark bg-dark">
3 <div class="container">
4 <a class="navbar-brand" href="/">AutoPartz</a>
5 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
6 aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
7 <span class="navbar-toggler-icon"></span>
8 </button>
9
10 <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
11 <ul class="navbar-nav m-auto">
12 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
13 <li class="nav-item m-auto">
14 <a class="nav-link active" href="/currentOrder">Моја нарачка</a>
15 </li>
16 </th:block>
17 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
18 <li class="nav-item m-auto">
19 <a class="nav-link active" href="/orders">Мои нарачки</a>
20 </li>
21 </th:block>
22 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
23 <li class="nav-item m-auto">
24 <a class="nav-link active" href="/repairs">Мои поправки</a>
25 </li>
26 </th:block>
27 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
28 <li class="nav-item m-auto">
29 <a class="nav-link active" href="/reviews">Мои критики</a>
30 </li>
31 </th:block>
32 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
33 <li class="nav-item m-auto">
34 <a class="nav-link active" href="/addCarSampleForUser">Додај примерок од кола</a>
35 </li>
36 </th:block>
37 <th:block sec:authorize="hasAuthority('ROLE_WAREHOUSEMAN')">
38 <li class="nav-item m-auto">
39 <a class="nav-link active" href="/myWarehouse">Мој магацин</a>
40 </li>
41 </th:block>
42 <th:block sec:authorize="hasAuthority('ROLE_WAREHOUSEMAN')">
43 <li class="nav-item m-auto">
44 <a class="nav-link active" href="/myWarehouseReport">Информации за потреби</a>
45 </li>
46 </th:block>
47 <th:block sec:authorize="hasAuthority('ROLE_DELIVERYMAN')">
48 <li class="nav-item m-auto">
49 <a class="nav-link active" href="/myDeliveries">Мои достави</a>
50 </li>
51 </th:block>
52 <th:block sec:authorize="hasAuthority('ROLE_PENDING_DELIVERYMAN')">
53 <li class="nav-item m-auto text-white">
54 Чека одобрување од администратор
55 </li>
56 </th:block>
57 <th:block sec:authorize="hasAuthority('ROLE_PENDING_WAREHOUSEMAN')">
58 <li class="nav-item m-auto text-white">
59 Чека одобрување од администратор
60 </li>
61 </th:block>
62 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
63 <li class="nav-item m-auto">
64 <a class="nav-link active" href="/viewUsers">Корисници</a>
65 </li>
66 </th:block>
67 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
68 <li class="nav-item m-auto">
69 <a class="nav-link active" href="/addPart">Додај дел</a>
70 </li>
71 </th:block>
72 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
73 <li class="nav-item m-auto">
74 <a class="nav-link active" href="/addCarManufacturer">Додај производител на коли</a>
75 </li>
76 </th:block>
77 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
78 <li class="nav-item m-auto">
79 <a class="nav-link active" href="/addPartManufacturer">Додај производител на дел</a>
80 </li>
81 </th:block>
82 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
83 <li class="nav-item m-auto">
84 <a class="nav-link active" href="/addWarehouse">Додај магацин</a>
85 </li>
86 </th:block>
87 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
88 <li class="nav-item m-auto">
89 <a class="nav-link active" href="/addCar">Додај кола</a>
90 </li>
91 </th:block>
92 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
93 <li class="nav-item m-auto">
94 <a class="nav-link active" href="/addRepairShop">Додај сервис</a>
95 </li>
96 </th:block>
97 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
98 <li class="nav-item m-auto">
99 <a class="nav-link active" href="/addCategory">Додај категорија</a>
100 </li>
101 </th:block>
102 </ul>
103
104 <ul class="nav navbar-nav navbar-right">
105 <th:block th:if="${#request.getRemoteUser() != null}">
106 <li class="nav-item">
107 <a class="btn btn-success btn-sm ml-3" href="/">
108 <th:block th:text="${#request.getRemoteUser()}"></th:block>
109 </a>
110 </li>
111 </th:block>
112 <th:block th:if="${#request.getRemoteUser() == null}">
113 <li class="nav-item">
114 <a class="btn btn-success btn-sm ml-3" href="/register">
115 <i class="fa fa-shopping-cart"></i> Регистрирај се
116 </a>
117 </li>
118 </th:block>
119 <th:block th:if="${#request.getRemoteUser() != null}">
120 <li class="nav-item" sec:authorize="isAuthenticated()">
121 <a class="btn btn-light btn-sm ml-3" href="/logout">
122 <i class="fa fa-shopping-cart"></i>
123 Одјави се
124 </a>
125 </li>
126 </th:block>
127 <th:block th:if="${#request.getRemoteUser() == null}">
128 <li class="nav-item">
129 <a class="btn btn-light btn-sm ml-3" href="/login">
130 <i class="fa fa-shopping-cart"></i> Најави се
131 </a>
132 </li>
133 </th:block>
134 </ul>
135 </div>
136 </div>
137 </nav>
138</header>
Note: See TracBrowser for help on using the repository browser.