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,42 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
{{define "title"}}Account{{end}}
|
||||
{{define "content"}}<div class="page-head">
|
||||
<h1>Account</h1>
|
||||
</div>
|
||||
<section class="card" aria-labelledby="account-title">
|
||||
<h2 id="account-title">Profile</h2>
|
||||
<dl class="dl">
|
||||
<dt>Username</dt><dd id="account-username">{{.Username}}</dd>
|
||||
<dt>Role</dt><dd id="account-role">{{.Role}}</dd>
|
||||
</dl>
|
||||
</section>
|
||||
{{if not .IsAdmin}}
|
||||
<section class="card" aria-labelledby="account-zones-title">
|
||||
<h2 id="account-zones-title">Delegated zones</h2>
|
||||
<ul class="list" id="account-zones"></ul>
|
||||
<p class="muted" id="account-zones-status" role="status">Loading...</p>
|
||||
</section>
|
||||
{{end}}
|
||||
<section class="card" aria-labelledby="password-title">
|
||||
<h2 id="password-title">Change password</h2>
|
||||
<form class="form" id="password-form" novalidate>
|
||||
<div class="field">
|
||||
<label for="pw-current">Current password</label>
|
||||
<input id="pw-current" name="current" type="password" autocomplete="current-password" maxlength="256">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="pw-new">New password</label>
|
||||
<input id="pw-new" name="password" type="password" autocomplete="new-password" maxlength="256">
|
||||
<p class="hint">12 to 256 characters.</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="pw-repeat">Repeat the new password</label>
|
||||
<input id="pw-repeat" name="repeat" type="password" autocomplete="new-password" maxlength="256">
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button type="submit" class="btn btn-primary">Change password</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
{{end}}
|
||||
Reference in new issue
Block a user