Add post voting
This commit is contained in:
+5
-3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user