chore(ui): add module file and main stub
- 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
This commit is contained in:
1 parent
7089a6f408
commit
5ac8f98f10
26 files changed
+3921
No files matched your search
@@ -0,0 +1,25 @@
|
||||
{{- /* 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}}
|
||||
Reference in new issue
Block a user