- chore(ui): add module file and main stub - feat(ui): add layout, pages and partials - feat(ui): add stylesheet and scripts - feat(ui): add page renderer and static file handler - test(ui): cover rendering, escaping and static serving
26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
|
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
|
{{define "title"}}Sign in{{end}}
|
|
{{define "content"}}<section class="card narrow">
|
|
<h1>Sign in</h1>
|
|
{{if .Error}}<p class="alert alert-error" role="alert">{{.Error}}</p>
|
|
{{end}}{{if .NoActiveAdmin}}<div class="alert alert-info">
|
|
<p>No administrator exists yet. Create the first one by running this command on the host that runs the container:</p>
|
|
<pre class="code"><code>{{.BootstrapCommand}}</code></pre>
|
|
</div>
|
|
{{end}}<form class="form" method="post" action="/login">
|
|
<div class="field">
|
|
<label for="login-username">Username</label>
|
|
<input id="login-username" name="username" type="text" autocomplete="username" autocapitalize="none" spellcheck="false" maxlength="64" required autofocus>
|
|
</div>
|
|
<div class="field">
|
|
<label for="login-password">Password</label>
|
|
<input id="login-password" name="password" type="password" autocomplete="current-password" maxlength="256" required>
|
|
</div>
|
|
<input type="hidden" name="next" value="{{.Next}}">
|
|
<div class="actions">
|
|
<button type="submit" class="btn btn-primary">Sign in</button>
|
|
</div>
|
|
</form>
|
|
</section>{{end}}
|