<!DOCTYPE html>
<html lang="ru"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
    <meta charset="UTF-8"/>
    <title>Компании, сотрудники и должности</title>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <link rel="icon" href="/favicon.svg">
    <script type="text/javascript" src="/webjars/bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
    <link rel="stylesheet" href="/webjars/bootstrap/5.1.3/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/webjars/font-awesome/6.1.0/css/all.min.css"/>
    <script type="text/javascript" src="/webjars/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <div class="lg justify-content-center container">
        <button class="navbar-toggler" type="button"
                data-bs-toggle="collapse" data-bs-target="#navbarNav"
                aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav" th:with="activeLink=${requestURI}">
                <a class="nav-link" href="/company"
                   th:classappend="${#strings.equals(activeLink, '/')} ? 'active' : ''">ГЛАВНОЕ</a>
                <a class="nav-link" href="/employee"
                   th:classappend="${#strings.equals(activeLink, '/employee')} ? 'active' : ''">Сотрудники</a>
                <a class="nav-link" href="/company"
                   th:classappend="${#strings.equals(activeLink, '/company')} ? 'active' : ''">Компании</a>
                <a class="nav-link" href="/position"
                   th:classappend="${#strings.equals(activeLink, '/position')} ? 'active' : ''">Должности</a>
                <a class="nav-link" href="/employee/report"
                   th:classappend="${#strings.equals(activeLink, '/employee/report')} ? 'active' : ''">Сотрудники по должностям</a>
                <a class="nav-link" href="/h2-console/" target="_blank">Консоль H2</a>
                <a sec:authorize="!isAuthenticated()" class="nav-link" href="/login">Войти</a>
                <a sec:authorize="isAuthenticated()" class="nav-link" href="/logout">Выйти</a>
            </ul>
        </div>
    </div>
</nav>
<div class="container-lg pt-5 min-vh-100">
    <div class="container container-padding" layout:fragment="content">
    </div>
</div>
</body>
<th:block layout:fragment="scripts">
</th:block>
</html>