From 2c4b617ddeb71a5856075c94dcc7dfff3cfcbcaa Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 20 May 2022 10:47:22 -0600 Subject: Implement saving of new and edited posts --- srv/src/api/tpl/edit-post.html | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'srv/src/api/tpl') diff --git a/srv/src/api/tpl/edit-post.html b/srv/src/api/tpl/edit-post.html index 9e30d4d..708858d 100644 --- a/srv/src/api/tpl/edit-post.html +++ b/srv/src/api/tpl/edit-post.html @@ -1,17 +1,31 @@ {{ define "body" }} +

+ + + +

+
+ {{ .CSRFFormInput }} +
- - + + {{ if eq .Payload.ID "" }} + + {{ else }} + {{ .Payload.ID }} + + {{ end }}
@@ -68,7 +82,7 @@ placeholder="Blog body" style="height: 50vh;" > - {{ .Payload.Body }} + {{- .Payload.Body -}}
-- cgit v1.2.3