summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-08-18 22:34:38 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-08-18 22:34:38 -0600
commitdfa9bcb9e23b10bb28973d1d27f05e04e8638320 (patch)
tree94ff86a65c7493db93f68665c82fb55b8a7ab58b /srv/src/http/tpl
parent7ac2f5ebb32a6098bc0d590130cc4b933db08771 (diff)
WIP
Diffstat (limited to 'srv/src/http/tpl')
-rw-r--r--srv/src/http/tpl/edit-post.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html
index 5db0600..a585b82 100644
--- a/srv/src/http/tpl/edit-post.html
+++ b/srv/src/http/tpl/edit-post.html
@@ -94,7 +94,9 @@
formtarget="_blank"
/>
- {{ if eq .Payload.Post.ID "" }}
+ {{ if .Payload.IsDraft }}
+ <input type="submit" value="Save" formaction="{{ BlogURL "drafts/" }}" />
+ {{ else if eq .Payload.Post.ID "" }}
<input type="submit" value="Publish" formaction="{{ BlogURL "posts/" }}" />
{{ else }}
<input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" />