Added ability to login

This commit is contained in:
2024-02-24 09:54:25 +01:00
parent 068bf045a7
commit 2e08600814
7 changed files with 102 additions and 46 deletions

View File

@ -1,9 +1,10 @@
{{define "page-content"}}
<h2>Editor</h2>
<form>
<input type="text" name="editor-title" value="Titel">
<textarea name="editor-desc"></textarea>
<textarea name="editor-text"></textarea>
<input type="submit" value="Senden" hx-post="/finished-edit/" hx-target="#page-content">
<input name="editor-title" placeholder="Titel" type="text" />
<textarea name="editor-desc" placeholder="Beschreibung"></textarea>
<textarea name="editor-text" placeholder="Artikel"></textarea>
<input type="submit" value="Senden" hx-post="/finished-edit/" hx-target="#page-content" />
</form>
{{end}}

8
web/templates/login.html Normal file
View File

@ -0,0 +1,8 @@
{{define "page-content"}}
<h2>Anmeldung</h2>
<form>
<input name="username" placeholder="Benutzername" type="text" />
<input name="password" placeholder="Passwort" type="password" />
<input type="submit" value="Anmelden" hx-post="/login/" hx-target="#page-content" />
</form>
{{end}}