{{define "content"}} {{$p := .Data.Policy}}{{$new := .Data.IsNew}}{{$sel := .Data.Selected}}

{{if $new}}Create a policy{{else}}Edit {{$p.Name}}{{end}}

Policy
When a name is blocked
NXDOMAIN is the usual choice: clients treat it as a normal negative answer and stop retrying.
Seconds a client should cache the block. A short value makes list changes take effect quickly.
Cancel
Blacklists

A query matching any of these lists is blocked using the response chosen on the left.

{{if .Data.Blacklists}}
{{range .Data.Blacklists}} {{end}}
{{else}}

No blacklists exist yet.

Create a blacklist {{end}}
Allowlists

A name on any allowlist is never blocked, whatever the blacklists say. This is how you carve an exception out of a large imported list without editing it.

{{if .Data.Allowlists}}
{{range .Data.Allowlists}} {{end}}
{{else}}

No allowlists exist yet.

Create an allowlist {{end}}
{{end}}