1 | <!DOCTYPE html>
|
---|
2 | <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
|
---|
3 | xmlns:sec="http://www.w3.org/1999/xhtml">
|
---|
4 | <head>
|
---|
5 | <meta charset="UTF-8">
|
---|
6 | <title>Title</title>
|
---|
7 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
---|
8 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
---|
9 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
---|
10 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
---|
11 |
|
---|
12 | </head>
|
---|
13 | <body>
|
---|
14 |
|
---|
15 | <header xmlns:th="http://www.thymeleaf.org">
|
---|
16 | <nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
---|
17 | <div class="container">
|
---|
18 | <a class="navbar-brand" href="/">FMO</a>
|
---|
19 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
|
---|
20 | aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
---|
21 | <span class="navbar-toggler-icon"></span>
|
---|
22 | </button>
|
---|
23 |
|
---|
24 | <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
|
---|
25 | <ul class="navbar-nav m-auto">
|
---|
26 | <li class="nav-item m-auto">
|
---|
27 | <a class="nav-link active" href="/products">Products</a>
|
---|
28 | </li>
|
---|
29 | <li class="nav-item m-auto" sec:authorize="hasRole('ROLE_ADMIN')">
|
---|
30 | <a class="nav-link active" th:href="@{/statistics}" th:method="GET">Statistics</a>
|
---|
31 | </li>
|
---|
32 | <li class="nav-item m-auto" sec:authorize="hasRole('ROLE_DELIVER')">
|
---|
33 | <a class="nav-link active" th:href="@{/delivery}" th:method="GET">Delivery</a>
|
---|
34 | </li>
|
---|
35 | </ul>
|
---|
36 |
|
---|
37 |
|
---|
38 | <ul class="nav navbar-nav navbar-right">
|
---|
39 |
|
---|
40 |
|
---|
41 | <li class="nav-item" sec:authorize="hasRole('ROLE_USER')">
|
---|
42 | <a class="btn btn-success btn-sm ml-3" th:href="@{/order}" th:method="GET">
|
---|
43 | <i class="fa fa-shopping-cart"></i> Cart
|
---|
44 | </a>
|
---|
45 | </li>
|
---|
46 | <li class="nav-item" sec:authorize="isAuthenticated()">
|
---|
47 | <a class="btn btn-light btn-sm ml-3" href="/logout">
|
---|
48 | <i class="fa fa-shopping-cart"></i> Logout
|
---|
49 | </a>
|
---|
50 | <li class="nav-item">
|
---|
51 | <a class="btn btn-light btn-sm ml-3" sec:authorize="!isAuthenticated()" href="/register">
|
---|
52 | <i class="fa fa-shopping-cart"></i> Register
|
---|
53 | </a>
|
---|
54 | </li>
|
---|
55 | <li class="nav-item" sec:authorize="!isAuthenticated()">
|
---|
56 | <a class="btn btn-light btn-sm ml-3" href="/login">
|
---|
57 | <i class="fa fa-shopping-cart"></i> Login
|
---|
58 | </a>
|
---|
59 | </li>
|
---|
60 | </ul>
|
---|
61 | </div>
|
---|
62 | </div>
|
---|
63 | </nav>
|
---|
64 | </header>
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|
68 | <section th:include="${bodyContent}"></section>
|
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|
72 |
|
---|
73 | <footer class="container-fluid text-center" style="padding-top: 100px">
|
---|
74 | <p>FMO Store</p>
|
---|
75 | <p>2023</p>
|
---|
76 | <p>Hristijan Mitic</p>
|
---|
77 | </footer>
|
---|
78 |
|
---|
79 | </body>
|
---|
80 | </html> |
---|