Files
coredns-web-ui/templates/html/partials/record_dialog.html
T
bryanpedini 5ac8f98f10 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
2026-11-19 15:46:12 +01:00

36 lines
1.4 KiB
HTML

{{- /* 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">&times;</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}}