From 1f3ae665ed2e58ca572678ce7caf8b711f226392 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 29 Nov 2022 20:59:31 +0100 Subject: Introduce EDIT and MANAGE methods All admin "index" pages are moved under MANAGE, so that we can have (for example) and normal "GET /posts" page later which would replace the current index page, and potentially corresponding pages for the other categories. The EDIT method replaces the old `?edit` pattern, which normalizes how we differentiate page functionality generally. --- src/http/tpl/post-edit.html | 142 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 src/http/tpl/post-edit.html (limited to 'src/http/tpl/post-edit.html') diff --git a/src/http/tpl/post-edit.html b/src/http/tpl/post-edit.html new file mode 100644 index 0000000..2813754 --- /dev/null +++ b/src/http/tpl/post-edit.html @@ -0,0 +1,142 @@ +{{ define "body" }} + +

+ {{ if .Payload.IsDraft }} + + Back to Drafts + + {{ else }} + + Back to Posts + + {{ end }} +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Unique ID + + {{ if eq .Payload.Post.ID "" }} + + {{ else if .Payload.IsDraft }} + {{ .Payload.Post.ID }} + + {{ else }} + {{ .Payload.Post.ID }} + + {{ end }} +
Tags (space separated) + + + {{ if gt (len .Payload.Tags) 0 }} + + Existing tags: + {{ range $i, $tag := .Payload.Tags }} + {{ if ne $i 0 }} {{ end }}{{ $tag }} + {{ end }} + + {{ end }} +
Series + +
Title + +
Description + +
+ +

+ +

+ +

+ + + + {{ if .Payload.IsDraft }} + + + + + + + + + {{ else }} + + {{ end }} + +

+ +
+ +{{ end }} + +{{ template "base.html" . }} -- cgit v1.2.3