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

Last change on this file since bde8b13 was bde8b13, checked in by ppaunovski <paunovskipavel@…>, 11 months ago

All 3 main use cases implemented.

  1. Starting a commute
  2. Writing a ticket
  3. Starting an instance of a Bus Line
  • 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 class="nav-item m-auto">
13 <a class="nav-link active" href="/bilet">Bileti</a>
14 </li>
15 <li class="nav-item m-auto">
16 <a class="nav-link active" href="/vozenje">Vozenja</a>
17 </li>
18 <li class="nav-item m-auto">
19 <a class="nav-link active" href="/kazna">Kazni</a>
20 </li>
21 <li 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 <li class="nav-item">
45 <a class="btn btn-success btn-sm ml-3" href="/shopping-cart">
46 <i class="fa fa-shopping-cart"></i> Cart
47 </a>
48 </li>
49 <li class="nav-item" sec:authorize="isAuthenticated()">
50 <a href="#" class="btn btn-light btn-sm ml-3" sec:authentication="name">
51 </a>
52 </li>
53 <li class="nav-item" sec:authorize="isAuthenticated()">
54 <a class="btn btn-light btn-sm ml-3" href="/logout">
55 <i class="fa-solid fa-right-from-bracket"></i> Logout
56 </a>
57 </li>
58 <li class="nav-item" sec:authorize="isAnonymous()">
59 <a class="btn btn-light btn-sm ml-3" href="/login">
60 <i class="fa-solid fa-right-to-bracket"></i> Login
61 </a>
62 </li>
63 <li class="nav-item" sec:authorize="hasRole('ROLE_ADMIN')">
64 <a class="btn btn-light btn-sm ml-3" href="/admin">
65 Admin Menu
66 </a>
67 </li>
68 </ul>
69 </div>
70 </div>
71 </nav>
72</header>
Note: See TracBrowser for help on using the repository browser.