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,35 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
{{define "record_dialog"}}<dialog id="record-dialog" class="dialog" aria-labelledby="record-dialog-title">
|
||||
<form id="record-form" class="form" novalidate>
|
||||
<div class="dialog-head">
|
||||
<h2 id="record-dialog-title">Add record</h2>
|
||||
<button type="button" class="btn btn-icon" data-close aria-label="Close">×</button>
|
||||
</div>
|
||||
<div class="dialog-body">
|
||||
<div class="alert alert-warn" id="record-broken" hidden>
|
||||
<p>The stored row cannot be served correctly. Saving replaces it with the values below.</p>
|
||||
<p>Stored content: <code class="mono" id="record-raw"></code></p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="rec-name">Name</label>
|
||||
<input id="rec-name" name="name" type="text" autocomplete="off" autocapitalize="none" spellcheck="false" placeholder="@" aria-describedby="rec-fqdn">
|
||||
<p class="hint" id="rec-fqdn" aria-live="polite"></p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="rec-type">Type</label>
|
||||
<select id="rec-type" name="type"></select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="rec-ttl">TTL (seconds)</label>
|
||||
<input id="rec-ttl" name="ttl" type="text" inputmode="numeric" value="3600">
|
||||
<p class="hint">0 means default (360 s).</p>
|
||||
</div>
|
||||
<div id="rec-fields"></div>
|
||||
</div>
|
||||
<div class="dialog-actions">
|
||||
<button type="button" class="btn" data-close>Cancel</button>
|
||||
<button type="submit" class="btn btn-primary" id="rec-submit">Save record</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>{{end}}
|
||||
Reference in new issue
Block a user