<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html lang="es" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
      <head th:replace="head/head :: main_head">
            <title th:text="${title}">Título de la página</title>
      </head>
      <body onload="mueveReloj()">
            <header th:replace="header/nav :: main_menu"></header>

            <div th:switch="${pagina}">
                  <div th:case="list">
                        <main th:replace="empleado/list :: listado"></main>
                  </div>
                  <div th:case="alta">
                        <main th:replace="empleado/form :: alta"></main>
                  </div>
                  <div th:case="*">
                        <main th:replace="main/main_content :: index"></main>
                  </div>
            </div>

            <footer th:replace="foot/footer :: main_footer"></footer>

            <script src="/webjars/jsquery/jquery.min.js"></script>
            <script src="/webjars/bootstrap/js/bootstrap.bundle.min.js"></script>
            <script src="/js/reloj.js"></script>
      </body>
</html>
