Implemented hub

This commit is contained in:
2024-02-24 15:31:33 +01:00
parent 49988edd82
commit 8f5739fb68
4 changed files with 38 additions and 13 deletions

View File

@ -4,7 +4,7 @@
<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" />
<input type="submit" value="Senden" hx-post="/finish-edit/" hx-target="#page-content" />
</form>
{{end}}

6
web/templates/hub.html Normal file
View File

@ -0,0 +1,6 @@
{{define "page-content"}}
<h2>Hub</h2>
<button hx-post="/write-article/" hx-target="#page-content">Artikel schreiben</button>
<button hx-post="/rss/" hx-target="#page-content">RSS Feed</button>
<button hx-post="/create-user/" hx-target="#page-content">Benutzer hinzufügen</button>
{{end}}