{{/* The region attribute editor — everything about a region except its drawn area, which is saved separately on the area workspace page so a rejected edit here can never discard a polygon. Admins normally reach it as the config-region-modal fragment swapped into #config-region-modal on the Configuration page; it posts via htmx so a validation error re-renders the fragment in place (modal stays open, entered values preserved) and a save sends HX-Redirect back to the config page. The full page below is the no-JS / direct-link fallback, so it carries the same form without the htmx attributes. */}} {{define "title"}}{{if .Region.ID}}Edit region{{else}}Add region{{end}} · {{.Org.Name}} · MeshTender{{end}} {{define "header"}}
{{.Org.Name}} · Configuration

{{if .Region.ID}}Edit region{{else}}Add region{{end}}

Back to configuration
{{end}} {{define "content"}} {{template "org-tabs" .Nav}} {{template "region-editor-alerts" .}}
{{template "region-editor-fields" .}}
Cancel
{{end}} {{/* config-region-modal is the htmx fragment swapped into #config-region-modal. */}} {{define "config-region-modal"}} {{end}} {{/* region-editor-alerts renders the validation errors, shared by page and modal. */}} {{define "region-editor-alerts"}} {{if .Errors}} {{end}} {{end}} {{/* region-editor-fields are the form controls themselves — the
element around them differs between the page and the modal. The area is deliberately absent: it's drawn on the workspace page. */}} {{define "region-editor-fields"}}
The human label. Defaults to the short name if you leave it blank.
Used by MeshCore in region def. Letters, digits, -, _.
Depth
{{end}}