update templates
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>/*/-->
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: header}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<main class="container mx-auto p-4 flex-grow flex items-center justify-center">
|
||||
<div class="w-full max-w-md">
|
||||
<h2 class="text-lg sm:text-xl mb-4 terminal-glow">New Account Registration</h2>
|
||||
@@ -47,7 +50,7 @@
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: footer}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
passwordMatchCheck(
|
||||
@@ -57,6 +60,6 @@
|
||||
);
|
||||
});
|
||||
</script>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: script}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>/*/-->
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: header}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<main class="container mx-auto p-4 flex-grow flex items-center justify-center">
|
||||
<div class="w-full max-w-4xl">
|
||||
<form th:action="@{/account/edit-{account}(account = ${account})}" th:method="post">
|
||||
@@ -56,7 +59,7 @@
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: footer}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
passwordMatchCheck(
|
||||
@@ -66,6 +69,6 @@
|
||||
);
|
||||
});
|
||||
</script>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: script}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>/*/-->
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: header}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<main class="container mx-auto p-4 flex-grow">
|
||||
<div class="bg-gray-800 p-6 rounded-lg border border-green-900">
|
||||
<h1 class="text-lg sm:text-xl mb-4 terminal-glow">Account Registry</h1>
|
||||
@@ -39,11 +42,11 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--/*/<th:block th:replace="~{pagination :: pagination('/account', ${pagination})}"/>/*/-->
|
||||
<th:block th:replace="~{pagination :: pagination('/account', ${pagination})}"/>
|
||||
</div>
|
||||
</main>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: footer}"/>/*/-->
|
||||
<!--/*/<th:block th:replace="~{layout.html :: script}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => makeLocalTime(document.querySelectorAll('.utcTimestamp')));
|
||||
</script>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>/*/-->
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: header}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<main class="container mx-auto p-4 flex-grow flex items-center justify-center">
|
||||
<div class="w-full max-w-md">
|
||||
<div class="bg-gray-800 p-6 rounded-lg border border-green-900">
|
||||
@@ -22,7 +25,7 @@ Goodbye.
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: footer}"/>/*/-->
|
||||
<!--/*/<th:block th:replace="~{layout.html :: script}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>/*/-->
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: header}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<!-- Main Content -->
|
||||
<main class="container mx-auto p-4 flex-grow flex items-center justify-center">
|
||||
<div class="w-full max-w-md">
|
||||
@@ -27,8 +30,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: footer}"/>/*/-->
|
||||
<!--/*/<th:block th:replace="~{layout.html :: script}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const errorDiv = document.getElementById('login-error');
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>/*/-->
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: header}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<main class="container mx-auto p-4 flex-grow flex items-center justify-center">
|
||||
<div class="w-full max-w-md">
|
||||
<div class="bg-gray-800 p-6 rounded-lg border border-green-900">
|
||||
@@ -18,7 +21,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: footer}"/>/*/-->
|
||||
<!--/*/<th:block th:replace="~{layout.html :: script}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<main class="container mx-auto p-4 flex-grow flex items-center justify-center">
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>/*/-->
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<!--/*/<th:block th:replace="~{layout.html :: header}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
<main class="container mx-auto p-4 flex-grow">
|
||||
<div class="bg-gray-800 p-6 rounded-lg border border-green-900">
|
||||
<h1 class="text-lg sm:text-xl mb-4 terminal-glow">Device Types</h1>
|
||||
@@ -43,11 +46,11 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--/*/<th:block th:replace="~{pagination :: pagination('/type', ${pagination})}"/>/*/-->
|
||||
<th:block th:replace="~{pagination :: pagination('/type', ${pagination})}"/>
|
||||
</div>
|
||||
</main>
|
||||
<!--/*/<th:block th:replace="~{layout.html :: footer}"/>/*/-->
|
||||
<!--/*/<th:block th:replace="~{layout.html :: script}"/>/*/-->
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => makeLocalTime(document.querySelectorAll('.utcTimestamp')));
|
||||
</script>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main class="container mx-auto p-4 flex-grow">
|
||||
<div class="mt-4">
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<th:block th:replace="~{layout.html :: documentHead ('Hlaeja Management')}"/>
|
||||
<head>
|
||||
<title>Hlæja Management</title>
|
||||
<th:block th:replace="~{layout.html :: metadata}"/>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<th:block th:replace="~{layout.html :: header}"/>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main class="container mx-auto p-4 flex-grow">
|
||||
<div class="mt-4">
|
||||
@@ -17,7 +19,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<th:block th:replace="~{layout.html :: footer}"/>
|
||||
<th:block th:replace="~{layout.html :: script}"/>
|
||||
</body>
|
||||
|
||||
@@ -1,57 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:fragment="documentHead (title)">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title th:text="${title}"/>
|
||||
<link th:href="@{/css/management.css}" rel="stylesheet">
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<head>
|
||||
<title>LuLz</title>
|
||||
<!-- Sheared head tags-->
|
||||
<th:block th:fragment="metadata">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- <title th:text="${title}"/>-->
|
||||
<link th:href="@{/css/tailwind.css}" rel="stylesheet">
|
||||
<link th:href="@{/css/management.css}" rel="stylesheet">
|
||||
<!-- <script src="https://cdn.tailwindcss.com"></script>-->
|
||||
</th:block>
|
||||
<style></style>
|
||||
</head>
|
||||
<body class="bg-gray-900 text-green-400 min-h-screen flex flex-col">
|
||||
<header th:fragment="header" class="bg-gray-800 border-b border-green-900">
|
||||
<div class="container mx-auto px-4 py-2 flex items-center justify-between">
|
||||
<div>
|
||||
<h1 class="text-xl sm:text-2xl terminal-glow">Hlaeja Management</h1>
|
||||
</div>
|
||||
<div class="relative">
|
||||
<button id="menu-toggle" class="focus:outline-none">
|
||||
<svg class="w-6 h-6 text-green-400 hover:text-green-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
|
||||
</svg>
|
||||
</button>
|
||||
<div id="dropdown-menu" class="hidden absolute right-0 mt-2 w-48 bg-gray-800 border border-green-900 shadow-lg z-10">
|
||||
<th:block th:if="${remoteUser.hasRole('admin')}">
|
||||
<a href="/account" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Account</a>
|
||||
<a href="/type" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Device Type</a>
|
||||
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">$ Device</a>
|
||||
<hr class="dropdown-divider">
|
||||
</th:block>
|
||||
<th:block th:if="${remoteUser.authenticated}">
|
||||
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">$ Node</a>
|
||||
<hr class="dropdown-divider">
|
||||
</th:block>
|
||||
<th:block th:if="${remoteUser.authenticated}">
|
||||
<a href="/logout" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Logout</a>
|
||||
</th:block>
|
||||
<th:block th:unless="${remoteUser.authenticated}">
|
||||
<a href="/login" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Login</a>
|
||||
</th:block>
|
||||
<!-- Navigation -->
|
||||
<th:block th:fragment="navigation">
|
||||
<header th:fragment="header" class="bg-gray-800 border-b border-green-900">
|
||||
<div class="container mx-auto px-4 py-2 flex items-center justify-between">
|
||||
<div>
|
||||
<a class="text-xl sm:text-2xl terminal-glow" href="/">Hlæja Management</a>
|
||||
</div>
|
||||
<div class="relative">
|
||||
<button id="menu-toggle" class="focus:outline-none">
|
||||
<svg class="w-6 h-6 text-green-400 hover:text-green-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
|
||||
</svg>
|
||||
</button>
|
||||
<div id="dropdown-menu" class="hidden absolute right-0 mt-2 w-48 bg-gray-800 border border-green-900 shadow-lg z-10">
|
||||
<th:block th:if="${remoteUser.hasRole('admin')}">
|
||||
<a href="/account" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Account</a>
|
||||
<a href="/type" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Device Type</a>
|
||||
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">$ Device</a>
|
||||
<hr class="dropdown-divider">
|
||||
</th:block>
|
||||
<th:block th:if="${remoteUser.authenticated}">
|
||||
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">$ Node</a>
|
||||
<hr class="dropdown-divider">
|
||||
</th:block>
|
||||
<th:block th:if="${remoteUser.authenticated}">
|
||||
<a href="/logout" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Logout</a>
|
||||
</th:block>
|
||||
<th:block th:unless="${remoteUser.authenticated}">
|
||||
<a href="/login" class="block px-4 py-2 text-sm hover:bg-gray-700 hover:text-green-300 transition-colors">Login</a>
|
||||
</th:block>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</header>
|
||||
</th:block>
|
||||
<!-- Pages Footer -->
|
||||
<th:block th:fragment="footer">
|
||||
<footer class="bg-gray-800 border-t border-green-900 mt-4">
|
||||
<div class="container mx-auto p-4">
|
||||
<div class="flex flex-col sm:flex-row justify-between items-center text-sm">
|
||||
<div class="text-green-600 mb-2 sm:mb-0">Hlaeja © 2025 Lulz Ltd</div>
|
||||
<footer class="bg-gray-800 border-t border-green-900 py-2">
|
||||
<div class="container mx-auto px-4 text-center text-xs">
|
||||
<div class="text-green-600 mb-2 sm:mb-0">Hlæja © 2025 Lulz Ltd.</div>
|
||||
<div class="flex space-x-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</footer>
|
||||
</th:block>
|
||||
<div th:fragment="script">
|
||||
<!-- JavaScript -->
|
||||
<th:block th:fragment="script">
|
||||
<script th:src="@{/js/management.js}"></script>
|
||||
</div>
|
||||
<script></script>
|
||||
</th:block>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user