diff --git a/templates/admin.html b/templates/admin.html index ea00317..fdfd3a2 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -2,9 +2,22 @@ - + Guestbook Admin + + + + + + + + +
@@ -19,47 +32,82 @@
-
- - - - - - - - - - - - - - - {% for g in guests %} - - - - - - - - - - - {% else %} - - - - {% endfor %} - -
IDNameEmailLocationCommentNewsletterTimestamp
{{ g[0] }}{{ g[1] }} {{ g[2] }}{{ g[3] or '—' }}{{ g[4] }}{{ g[5] or '—' }}{{ 'Yes' if g[6] else 'No' }}{{ g[7] | localtime }} - {% if current_user.role != 'viewer' %} -
- - -
+ +
+ {% for g in guests %} +
+
+
+
+ {{ g[1] }} {{ g[2] }} +
{{ g[4] }} · {{ g[7] | localtime }}
+
Newsletter: {{ 'Yes' if g[6] else 'No' }}
+ {% if g[3] %} +
{{ g[3] }}
{% endif %} -
No entries found.
+ {% if g[5] %} +
{{ g[5] }}
+ {% endif %} +
+ {% if current_user.role != 'viewer' %} +
+ + +
+ {% endif %} + + + + {% else %} +

No entries found.

+ {% endfor %} + + + +
+
+ + + + + + + + + + + + + + + {% for g in guests %} + + + + + + + + + + + {% else %} + + + + {% endfor %} + +
IDNameEmailLocationCommentNewsletterTimestamp
{{ g[0] }}{{ g[1] }} {{ g[2] }}{{ g[3] or '—' }}{{ g[4] }}{{ g[5] or '—' }}{{ 'Yes' if g[6] else 'No' }}{{ g[7] | localtime }} + {% if current_user.role != 'viewer' %} +
+ + +
+ {% endif %} +
No entries found.
+
{% if total_pages > 1 %} @@ -80,5 +128,13 @@ {% endif %} + + diff --git a/templates/admin_login.html b/templates/admin_login.html index 2651d0a..b8c8ffd 100644 --- a/templates/admin_login.html +++ b/templates/admin_login.html @@ -2,9 +2,22 @@ - + Guestbook Admin — Login + + + + + + + + +
@@ -31,5 +44,13 @@
+ + diff --git a/templates/admin_users.html b/templates/admin_users.html index cc7adc1..5d89f4a 100644 --- a/templates/admin_users.html +++ b/templates/admin_users.html @@ -2,9 +2,22 @@ - + Guestbook Admin — Users + + + + + + + + +
@@ -76,5 +89,13 @@ Admins can view and delete entries. Viewers can only view.

+ + diff --git a/templates/index.html.template b/templates/index.html.template index 6743540..979e58c 100644 --- a/templates/index.html.template +++ b/templates/index.html.template @@ -3,9 +3,17 @@ - + ${SITE_TITLE} + + + + + + + + @@ -20,6 +28,23 @@ font-weight: 700; } + /* PWA / iOS kiosk */ + html, body { + height: 100%; + overscroll-behavior: none; + } + + body { + padding-bottom: env(safe-area-inset-bottom); + } + + /* Prevent iOS auto-zoom on input focus (requires >= 16px) */ + input.form-control, + textarea.form-control, + select.form-select { + font-size: 16px !important; + } + /* Scrolling marquee styles */ .scrolling-wrapper { overflow: hidden; @@ -29,6 +54,7 @@ width: 100%; background-color: #f8f9fa; border-top: 1px solid #dee2e6; + padding-bottom: env(safe-area-inset-bottom); } .scrolling-content { @@ -172,6 +198,15 @@ + + + \ No newline at end of file