{{define "body"}}

Categories

{{template "flashes" .}}
{{range $category := .categories}} {{template "row-category" $category}} {{end}}
{{end}} {{define "row-category"}} {{if .Parent.Valid }} {{with .Depth}}
{{end}} {{else}}
{{end}} {{.Name}} delete
{{range $child := .Children}} {{template "row-category" $child}} {{end}} {{end}} {{define "option-category"}} {{range $child := .Children}} {{template "option-category" $child}} {{end}} {{end}}