[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">
|
---|
[8b875e6] | 12 | <li sec:authorize="hasRole('ROLE_PASSENGER')" class="nav-item m-auto">
|
---|
[b101b69] | 13 | <a class="nav-link active" href="/bilet">Bileti</a>
|
---|
| 14 | </li>
|
---|
[8b875e6] | 15 | <li sec:authorize="hasAnyRole('ROLE_PASSENGER')" class="nav-item m-auto">
|
---|
[bde8b13] | 16 | <a class="nav-link active" href="/vozenje">Vozenja</a>
|
---|
[b101b69] | 17 | </li>
|
---|
[8b875e6] | 18 | <li sec:authorize="hasRole('ROLE_PASSENGER')" class="nav-item m-auto">
|
---|
[bde8b13] | 19 | <a class="nav-link active" href="/kazna">Kazni</a>
|
---|
| 20 | </li>
|
---|
[8b875e6] | 21 | <li sec:authorize="hasAnyRole('ROLE_CONDUCTOR', 'ROLE_DRIVER')" class="nav-item m-auto">
|
---|
[bde8b13] | 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>
|
---|