swt23w23/src/main/resources/templates/navigation.html

134 lines
2.6 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
</head>
<body>
<nav th:fragment="navigation">
<div class="ui menu">
2023-11-13 20:09:39 +01:00
<a
class="item"
href="welcome.html"
th:href="@{/}"
th:text="Startseite"
>
Startseite
</a>
<!--prototype-paul-simon-->
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasRole('CUSTOMER')"-->
<a
class="item"
href="register.html"
th:href="@{/register}"
2023-11-13 20:09:39 +01:00
th:text="Registrierung"
>
Registrierung
</a>
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasAnyRole('BOSS','CUSTOMER')"-->
<a
class="item"
href="login.html"
th:href="@{/login}"
2023-11-13 20:09:39 +01:00
th:text="Login"
>
Login
</a>
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasRole('BOSS')"-->
<a
class="item"
href="inventory.html"
th:href="@{/inventory}"
2023-11-13 20:09:39 +01:00
th:text="Inventar"
>
Inventar
</a>
2023-11-13 20:09:39 +01:00
<a
class="item"
href="catalog.html"
th:href="@{/catalog}"
th:text="Katalog"
>
Katalog
</a>
<!--prototype-eren-denis-->
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasRole('BOSS')"-->
<a
class="item"
2023-11-13 20:09:39 +01:00
href="staff.html"
th:href="@{/staff}"
th:text="Angestellte"
>
Angestellte
</a>
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasRole('BOSS')"-->
<a
class="item"
href="customer.html"
th:href="@{/customer}"
2023-11-13 20:09:39 +01:00
th:text="Kunden"
>
Kunden
</a>
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasAnyRole('BOSS','CUSTOMER')"-->
<a
class="item"
href="profile.html"
th:href="@{/profile}"
2023-11-13 20:09:39 +01:00
th:text="Profil"
>
Registrierung
</a>
<!--prototype-eric-mathis-->
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasAnyRole('BOSS','CUSTOMER')"-->
<a
class="item"
href="orders.html"
th:href="@{/orders}"
2023-11-13 20:09:39 +01:00
th:text="Bestellungen"
>
Bestellungen
</a>
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasAnyRole('BOSS','CUSTOMER')"-->
<a
class="item"
href="event.html"
th:href="@{/event}"
2023-11-13 20:09:39 +01:00
th:text="'Event planen'"
>
Events
</a>
<!--prototpye-theo-->
2023-11-13 20:09:39 +01:00
<!--sec:authorize="hasRole('BOSS')"-->
<a
class="item"
href="orders.calender.html"
th:href="@{/orders/calender}"
2023-11-13 20:09:39 +01:00
th:text="Kalender"
>
Kalender der Bestellungen
</a>
<div class="right menu">
<a class="item" th:href="@{/login}" sec:authorize="isAuthenticated()" th:text="#{nav.login}">Login</a>
<form class="item" sec:authorize="isAuthenticated()" th:action="@{/logout}" method="post">
<button type="submit" class="ui button" th:text="#{nav.logout}">Logout</button>
</form>
</div>
</div>
2023-11-13 20:09:39 +01:00
<br/>
</nav>
</body>
</html>