summaryrefslogtreecommitdiff
path: root/srv/src/api/tpl/edit-post.html
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/api/tpl/edit-post.html')
-rw-r--r--srv/src/api/tpl/edit-post.html19
1 files changed, 12 insertions, 7 deletions
diff --git a/srv/src/api/tpl/edit-post.html b/srv/src/api/tpl/edit-post.html
index 708858d..9ccfa2a 100644
--- a/srv/src/api/tpl/edit-post.html
+++ b/srv/src/api/tpl/edit-post.html
@@ -1,11 +1,5 @@
{{ define "body" }}
- <p>
- <a href="{{ BlogURL "posts/" }}">
- <button>Back to Posts</button>
- </a>
- </p>
-
<form method="POST" action="{{ BlogURL "posts/" }}">
{{ .CSRFFormInput }}
@@ -87,7 +81,18 @@
</div>
</div>
- <input type="submit" value="Save" />
+ <input
+ type="submit"
+ value="Preview"
+ formaction="{{ BlogURL "posts/" }}{{ .Payload.ID }}?method=preview"
+ formtarget="_blank"
+ />
+
+ <input type="submit" value="Save" formaction="{{ BlogURL "posts/" }}" />
+
+ <a href="{{ BlogURL "posts/" }}">
+ <button type="button">Cancel</button>
+ </a>
</form>