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

2 lines
1.2 KiB
Go Template

{{define "content"}}<div class="form-layout"><section class="panel"><div class="panel-head"><div><h2>New block rule</h2><p>One validated policy rule per request.</p></div></div><form method="post" action="/blocklists" class="form-body"><input type="hidden" name="_csrf" value="{{.CSRF}}"><div class="field-row"><label class="field-label" for="blockRule">Rule <span class="required">*</span></label><input class="field mono" id="blockRule" name="rule" required value="{{selectval .Data.Form "rule"}}" placeholder="malware.example.org"><small>A single line. EasyDNS validates syntax and writes to its API overlay.</small></div><div class="form-actions"><a href="/blocklists" class="btn-ui">Cancel</a><button class="btn-ui btn-primary-ui" type="submit">Add rule</button></div></form></section><aside class="panel guide"><div class="panel-head"><h2>API boundaries</h2></div><div class="panel-body"><p>The REST API returns the number of loaded rules, but not their complete list. Editing or removing an individual rule is not supported.</p><div class="data-row"><span>Invalid rule</span><strong>400</strong></div><div class="data-row"><span>Rejected reload</span><strong>422</strong></div></div></aside></div>{{end}}