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

Last change on this file since 4251327 was e272096, checked in by ppaunovski <paunovskipavel@…>, 9 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.6 KB
RevLine 
[b101b69]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">
[e272096]12 <li sec:hasRole class="nav-item m-auto">
[b101b69]13 <a class="nav-link active" href="/bilet">Bileti</a>
14 </li>
15 <li class="nav-item m-auto">
[bde8b13]16 <a class="nav-link active" href="/vozenje">Vozenja</a>
[b101b69]17 </li>
18 <li class="nav-item m-auto">
[bde8b13]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>
[b101b69]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>
[e272096]44
[b101b69]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>
[bde8b13]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>
[b101b69]64 </ul>
65 </div>
66 </div>
67 </nav>
68</header>
Note: See TracBrowser for help on using the repository browser.