Styled the post list and added updating of posts

This commit is contained in:
Leon Mika 2026-02-22 10:09:34 +11:00
parent e77cac2fd5
commit aef3bb6a1e
31 changed files with 1230 additions and 118 deletions

14
views/posts/edit.html Normal file
View file

@ -0,0 +1,14 @@
<main class="flex-grow-1 position-relative">
<form action="/sites/{{.site.ID}}/posts" method="post" class="container-fluid post-form p-2">
<input type="hidden" name="guid" value="{{ .post.GUID }}">
<div class="mb-2">
<input type="text" name="title" class="form-control" placeholder="Title" value="{{ .post.Title }}">
</div>
<div>
<textarea name="body" class="form-control" rows="3">{{.post.Body}}</textarea>
</div>
<div>
<input type="submit" class="btn btn-primary mt-2" value="Publish">
</div>
</form>
</main>