{{/* Renders a *nodeDetailData as the right-pane detail panel. */}} {{define "yang-node-detail"}}
{{.Name}}
{{if .Error}}
{{.Error}}
{{end}} {{if .SavedOK}}
Saved to candidate
{{end}} {{/* ── Read-only value display for status tree ──────────────────── */}} {{if and .ReadOnly (or (eq .Kind "leaf") (eq .Kind "leaf-list"))}} {{end}} {{/* ── Edit form — only for writable leaves in non-ReadOnly mode ── */}} {{if and (not .ReadOnly) .Config (or (eq .Kind "leaf") (eq .Kind "leaf-list"))}} {{/* hx-swap="none": SaveLeaf returns 204 + a cfgSaved trigger, and the cfgSaved handler re-fetches the whole current tree page from the fresh candidate so confd-inferred values surface. */}}
{{end}} {{/* ── Details foldout ────────────────────────────────────────────── */}}
Details
{{if .Description}}

{{.Description}}

{{end}} {{if .Mandatory}}{{end}} {{if .Default}}{{end}} {{if .Keys}} {{end}} {{if .Type}} {{if .Type.Enums}} {{end}} {{if .Type.Identities}} {{end}} {{if .Type.Leafref}}{{end}} {{if .Type.Range}}{{end}} {{if .Type.Pattern}}{{end}} {{end}}
Path{{.Path}}
Access {{if .Config}}read-write{{else}}read-only{{end}}
Mandatoryyes
Default{{.Default}}
Keys {{range $i,$k := .Keys}}{{if $i}}, {{end}}{{$k}}{{end}}
Type{{.Type.Kind}}
Values
{{range .Type.Enums}}{{.}}{{end}}
Identities
{{range .Type.Identities}}{{.}}{{end}}
Leafref{{.Type.Leafref}}
Range{{.Type.Range}}
Pattern{{.Type.Pattern}}
{{end}}