{{define "body"}}

{{if eq .mode "add"}}Add Link{{else}}Edit News{{end}}

{{template "flashes" .}}
Link:
Title:
Category:
Notes:
{{end}} {{define "option-category"}} {{range $child := .category.Children}} {{template "option-category" dict "category" $child "category_id" $.category_id}} {{end}} {{end}}