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

118 lines
2.3 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">
<!--prototype-paul-simon-->
<a
class="item"
href="register.html"
th:href="@{/register}"
sec:authorize="hasRole('CUSTOMER')"
th:text="#{nav.register}"
>
Registrierung
</a>
<a
class="item"
href="login.html"
th:href="@{/login}"
sec:authorize="hasAnyRole('BOSS','CUSTOMER')"
th:text="#{nav.login}"
>
Login
</a>
<a
class="item"
href="inventory.html"
th:href="@{/inventory}"
sec:authorize="hasRole('BOSS')"
th:text="#{nav.inventory}"
>
Inventar
</a>
<!--prototype-eren-denis-->
<a
class="item"
href="employee.html"
th:href="@{/employee}"
sec:authorize="hasRole('BOSS')"
th:text="#{nav.employee}"
>
Angestellte
</a>
<a
class="item"
href="customer.html"
th:href="@{/customer}"
sec:authorize="hasRole('BOSS')"
th:text="#{nav.customer}"
>
Kunden
</a>
<a
class="item"
href="profile.html"
th:href="@{/profile}"
sec:authorize="hasAnyRole('BOSS','CUSTOMER')"
th:text="#{nav.profile}"
>
Registrierung
</a>
<!--prototype-eric-mathis-->
<a
class="item"
href="orders.html"
th:href="@{/orders}"
sec:authorize="hasAnyRole('BOSS','CUSTOMER')"
th:text="#{nav.orders}"
>
Bestellungen
</a>
<a
class="item"
href="event.html"
th:href="@{/event}"
sec:authorize="hasAnyRole('BOSS','CUSTOMER')"
th:text="#{nav.event}"
>
Events
</a>
<!--prototpye-theo-->
<a
class="item"
href="orders.calender.html"
th:href="@{/orders/calender}"
sec:authorize="hasRole('BOSS')"
th:text="#{nav.orders.calender}"
>
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>
<br/>
</nav>
</body>
</html>