Add post voting

This commit is contained in:
2024-10-16 17:52:50 +02:00
parent df926c815e
commit ffbbc709ce
12 changed files with 4237 additions and 49 deletions
+5 -3
View File
@@ -3,7 +3,7 @@
<title>Log in</title>
<link rel="stylesheet" media="screen" href="/static/global.css" />
</head>
<body>
<body hx-boost="true">
<main>
<nav>
<table>
@@ -20,11 +20,13 @@
</table>
</nav>
<form method="POST" action="/action/login">
<script src="/static/htmx.js"></script>
<div id="login-error-message"></div>
<form hx-post="/action/login" hx-target="#login-error-message">
<input type="text" name="name" placeholder="name" />
<input type="password" name="pass" placeholder="pass" />
<input type="submit" value="login" />
</form>
</main>
</body>
</html>
</html>