source: bus-n-go-do-5ta-faza/src/main/resources/templates/fragments/header.html@ bfb90dd

Last change on this file since bfb90dd was baf4cc4, checked in by ppaunovski <paunovskipavel@…>, 3 months ago

split group project and individual project into two separate folders

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<header xmlns:th="http://www.thymeleaf.org">
2 <nav class="navbar navbar-expand-md navbar-dark bg-dark">
3 <div class="container">
4 <a class="navbar-brand" href="/">Bus & GO</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 <li sec:authorize="hasRole('ROLE_PASSENGER')" class="nav-item m-auto">
13 <a class="nav-link active" href="/bilet">Bileti</a>
14 </li>
15 <li sec:authorize="hasAnyRole('ROLE_PASSENGER')" class="nav-item m-auto">
16 <a class="nav-link active" href="/vozenje">Vozenja</a>
17 </li>
18 <li sec:authorize="hasRole('ROLE_PASSENGER')" class="nav-item m-auto">
19 <a class="nav-link active" href="/kazna">Kazni</a>
20 </li>
21 <li sec:authorize="hasAnyRole('ROLE_CONDUCTOR', 'ROLE_DRIVER')" class="nav-item m-auto">
22 <a class="nav-link active" href="/instanca-na-linija">Instanci</a>
23 </li>
24 </ul>
25
26
27 <form class="form-inline my-2 my-lg-0">
28 <div class="input-group input-group-sm">
29 <input type="text" class="form-control" aria-label="Small"
30 aria-describedby="inputGroup-sizing-sm"
31 placeholder="Search...">
32 <div class="input-group-append">
33 <button type="button" class="btn btn-secondary btn-number">
34 <i class="fa fa-search"></i>
35 </button>
36 </div>
37 </div>
38 </form>
39 <ul class="nav navbar-nav navbar-right">
40
41 <li class="nav-item">
42 <a class="nav-link" href="#"></a>
43 </li>
44
45 <li class="nav-item" sec:authorize="isAuthenticated()">
46 <a href="#" class="btn btn-light btn-sm ml-3" sec:authentication="name">
47 </a>
48 </li>
49 <li class="nav-item" sec:authorize="isAuthenticated()">
50 <a class="btn btn-light btn-sm ml-3" href="/logout">
51 <i class="fa-solid fa-right-from-bracket"></i> Logout
52 </a>
53 </li>
54 <li class="nav-item" sec:authorize="isAnonymous()">
55 <a class="btn btn-light btn-sm ml-3" href="/login">
56 <i class="fa-solid fa-right-to-bracket"></i> Login
57 </a>
58 </li>
59 <li class="nav-item" sec:authorize="hasRole('ROLE_ADMIN')">
60 <a class="btn btn-light btn-sm ml-3" href="/admin">
61 Admin Menu
62 </a>
63 </li>
64 </ul>
65 </div>
66 </div>
67 </nav>
68</header>
Note: See TracBrowser for help on using the repository browser.