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

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

initial classes, no inheritance yet v2

  • Property mode set to 100644
File size: 2.5 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="/categories">Categories</a>
17 </li>
18 <li class="nav-item m-auto">
19 <a class="nav-link active" href="/manufacturers">Manufacturers</a>
20 </li>
21 </ul>
22
23
24 <form class="form-inline my-2 my-lg-0">
25 <div class="input-group input-group-sm">
26 <input type="text" class="form-control" aria-label="Small"
27 aria-describedby="inputGroup-sizing-sm"
28 placeholder="Search...">
29 <div class="input-group-append">
30 <button type="button" class="btn btn-secondary btn-number">
31 <i class="fa fa-search"></i>
32 </button>
33 </div>
34 </div>
35 </form>
36 <ul class="nav navbar-nav navbar-right">
37
38 <li class="nav-item">
39 <a class="nav-link" href="#"></a>
40 </li>
41 <li class="nav-item">
42 <a class="btn btn-success btn-sm ml-3" href="/shopping-cart">
43 <i class="fa fa-shopping-cart"></i> Cart
44 </a>
45 </li>
46 <li class="nav-item" sec:authorize="isAuthenticated()">
47 <a href="#" class="btn btn-light btn-sm ml-3" sec:authentication="name">
48 </a>
49 </li>
50 <li class="nav-item" sec:authorize="isAuthenticated()">
51 <a class="btn btn-light btn-sm ml-3" href="/logout">
52 <i class="fa-solid fa-right-from-bracket"></i> Logout
53 </a>
54 </li>
55 <li class="nav-item" sec:authorize="isAnonymous()">
56 <a class="btn btn-light btn-sm ml-3" href="/login">
57 <i class="fa-solid fa-right-to-bracket"></i> Login
58 </a>
59 </li>
60 </ul>
61 </div>
62 </div>
63 </nav>
64</header>
Note: See TracBrowser for help on using the repository browser.