Files

56 lines
2.3 KiB
HTML

{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
{{define "zone_create_dialog"}}<dialog id="zone-dialog" class="dialog" aria-labelledby="zone-dialog-title">
<form id="zone-form" class="form" novalidate>
<div class="dialog-head">
<h2 id="zone-dialog-title">New zone</h2>
<button type="button" class="btn btn-icon" data-close aria-label="Close">&times;</button>
</div>
<div class="dialog-body">
<div class="field">
<label for="nz-name">Zone name</label>
<input id="nz-name" name="name" type="text" autocomplete="off" autocapitalize="none" spellcheck="false" placeholder="example.org" required>
</div>
<div class="field">
<label for="nz-ns">Primary name server</label>
<input id="nz-ns" name="ns" type="text" autocomplete="off" autocapitalize="none" spellcheck="false" placeholder="ns1.example.org" required>
</div>
<div class="field">
<label for="nz-mbox">Hostmaster mailbox</label>
<input id="nz-mbox" name="mbox" type="text" autocomplete="off" autocapitalize="none" spellcheck="false" placeholder="hostmaster@example.org" required>
</div>
<div class="field">
<label for="nz-extra">Additional name servers, one per line</label>
<textarea id="nz-extra" name="extra_ns" rows="3" autocomplete="off" autocapitalize="none" spellcheck="false"></textarea>
</div>
<div class="grid-2">
<div class="field">
<label for="nz-refresh">SOA refresh</label>
<input id="nz-refresh" name="refresh" type="text" inputmode="numeric" value="3600">
</div>
<div class="field">
<label for="nz-retry">SOA retry</label>
<input id="nz-retry" name="retry" type="text" inputmode="numeric" value="600">
</div>
<div class="field">
<label for="nz-expire">SOA expire</label>
<input id="nz-expire" name="expire" type="text" inputmode="numeric" value="604800">
</div>
<div class="field">
<label for="nz-minttl">SOA minimum TTL</label>
<input id="nz-minttl" name="minttl" type="text" inputmode="numeric" value="300">
</div>
</div>
<div class="field">
<label for="nz-ttl">TTL of the SOA and NS records</label>
<input id="nz-ttl" name="ttl" type="text" inputmode="numeric" value="3600">
</div>
</div>
<div class="dialog-actions">
<button type="button" class="btn" data-close>Cancel</button>
<button type="submit" class="btn btn-primary">Create zone</button>
</div>
</form>
</dialog>{{end}}