1
0

Added CSS from guestbook page. Changed nav menu. Added placeholders and maxlength for inputs.

This commit is contained in:
Alexander Andreev 2023-05-10 01:03:20 +04:00
parent 0e1b41b057
commit 8d65f54cb0
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -4,6 +4,7 @@ block meta_description
meta(name='description' content="Guestbook administration.")
block append head
link(href='/assets/css/guestbook.css' rel='stylesheet')
link(href='/assets/css/guestbook_admin.css' rel='stylesheet')
script(src='/assets/js/guestbook_admin.js' defer='')
@ -12,7 +13,8 @@ block nav
a(href='/stuff') Stuff
a(href='/mindflow') Mindflow
a(href='/about') About
h1 Guestbook
a(href='/guestbook') Guestbook
h1 Guestbook Admin
block content
:go:func GuestbookAdmin(title, owner string, entries []*guestbook.Entry, r *http.Request)
@ -23,7 +25,7 @@ block content
form.entry(onsubmit='return false;')
header
- var created_tz = util.ToClientTimezone(entry.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00")
| ##{entry.ID} by #[input(type='text' name='name' value=entry.Name)] #[input(type='text' name='website' value=entry.Website)]
| ##{entry.ID} by #[input(type='text' maxlength='80' placeholder='Name (Anonymous if left blank)' name='name' value=entry.Name)] #[input(type='text' maxlength='255' placeholder='Website (optional)' name='website' value=entry.Website)]
if entry.Website != ""
| (#[input(type='checkbox' name='hide_website') hide])
else