From 5080c566ac31ec622986c04f1812a1e88c88210e Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Fri, 29 Mar 2024 16:35:04 -0600 Subject: guestbook! --- templates/guestbook.html | 57 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) (limited to 'templates/guestbook.html') diff --git a/templates/guestbook.html b/templates/guestbook.html index 859daaf..f304666 100644 --- a/templates/guestbook.html +++ b/templates/guestbook.html @@ -1,3 +1,58 @@ {{ define "content" }} -

guestbook

+ +
+

sign the guestboooook!!!!

+

leave a message for the world to see (keep it civil plz and no spam >:3).

+
+ + + + + +
+
+ +
+ {{ if .FormError }} + {{ if (len .FormError.Errors) }} + {{ range $error := .FormError.Errors }} +
{{ $error }}
+ {{ end }} + {{ end }} + {{ end }} +
+ +
+ +{{ if (eq (len .GuestbookEntries) 0) }} +
no entries yet.
+{{ else }} +

peeps that said hi.

+
+ {{ range .GuestbookEntries }} +
+
name: {{ .Name }}
+
{{ .CreatedAt }}
+
{{ .Message }}
+
+ {{ end }} +{{ end }} + + + {{ end }} -- cgit v1.2.3-70-g09d2