Files
EasyDNS-Web/internal/server/web/templates/pages/delete-confirm.gohtml
T
Mateusz Gruszczyński 8c4d463f1e
Go quality gates / test (push) Waiting to run
first commit
2026-11-30 11:37:40 +01:00

5 lines
1.9 KiB
Go Template

{{define "content"}}<div class="confirmation-box panel"><div class="panel-head"><div><h2>Confirm permanent deletion</h2><p>This operation cannot be undone through EasyDNS REST.</p></div><span class="tag red">DESTRUCTIVE</span></div><div class="panel-body">
{{if eq .Data.Action "record"}}<p>You are about to remove the following DNS record:</p><div class="target-summary"><div class="data-row"><span>Name</span><strong class="mono">{{.Data.Record.Name}}</strong></div><div class="data-row"><span>Type</span><strong>{{.Data.Record.Type}}</strong></div><div class="data-row"><span>RDATA</span><strong class="mono">{{.Data.Record.Data}}</strong></div></div><form method="post" action="{{.Data.ZoneURL}}/records/{{.Data.Record.ID}}/delete"><input type="hidden" name="_csrf" value="{{.CSRF}}"><input type="hidden" name="etag" value="{{.Data.ETag}}"><label class="field-label" for="confirmDelete">Type DELETE <span class="required">*</span></label><input id="confirmDelete" class="field mono" name="confirm" required pattern="DELETE" autocomplete="off" placeholder="DELETE"><div class="form-actions"><a class="btn-ui" href="{{.Data.ZoneURL}}/records">Cancel</a><button type="submit" class="btn-ui btn-danger-ui">Delete record</button></div></form>
{{else}}<p>Zone <strong class="mono">{{.Data.Zone.Name}}</strong> will be removed if it was created via the REST API overlay. File-configured zones cannot be removed using this endpoint (409).</p><form method="post" action="{{.Data.ZoneURL}}/delete"><input type="hidden" name="_csrf" value="{{.CSRF}}"><label class="field-label" for="confirmZone">Type the complete zone name <span class="required">*</span></label><input id="confirmZone" class="field mono" name="confirm" required autocomplete="off" placeholder="{{.Data.Zone.Name}}"><div class="form-actions"><a class="btn-ui" href="{{.Data.ZoneURL}}">Cancel</a><button type="submit" class="btn-ui btn-danger-ui">Delete zone</button></div></form>{{end}}
</div></div>{{end}}