panel-redesign: sign-in without an administrator follows its mockup

- panel.css: .sp-signin-form .sp-form, as theme.css has it now.
  - templates/login.html: the state is div.sp-form with the mockup's
    heading and line; the empty form of ef8a82e is gone.
  - tests: the hint is checked by its new wording, and that the page
    carries no form at all.

Evidence
  - docs/assets/panel-redesign/evidence/login-no-admin.png: 1440x900,
    headless Edge, real templates served locally (no Docker here).
    login.png re-shot after the selector change: byte-identical.
  - go test -count=1 ./internal/web/... : ok (web, auth, handlers,
    validate, view)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mix
2026-10-09 23:33:26 +03:00
co-authored by Claude Opus 5.5
parent 2b4a158423
commit f59f4778c9
6 changed files with 15 additions and 14 deletions
+5 -8
View File
@@ -4,15 +4,12 @@
in as, so the form gives way to a pointer at the setup link. */}}
{{define "content"}}
{{if .SetupHint}}
{{/* The signed-out layout sizes and centres its column through "form" alone, so
this state, which has no fields, keeps the element; it has no action and no
control and cannot be submitted. */}}
<form class="sp-form">
{{/* Mockup login-no-admin.html: the same column, not a form. */}}
<div class="sp-form">
{{if .Host}}<p>{{template "kicker" .Host}}</p>{{end}}
<h1 class="title is-3">Sign in</h1>
<p class="sp-muted">No administrator has been created yet. Open the one-time
setup link printed in the container log to get started.</p>
</form>
<h1 class="title is-3">No administrator yet</h1>
<p class="sp-muted">Open the one-time setup link printed in the container log to create one.</p>
</div>
{{else}}
<form class="sp-form" method="post" action="/login">
{{if .Host}}<p>{{template "kicker" .Host}}</p>{{end}}