{{ define "template.form" }} {{ $isEdit := .Data.Form.IsEditForm }} {{ $action := printf "/template-set/%s/new" .Data.Form.Template.TemplateSet }} {{ if $isEdit }} {{ $action = printf "/template/%s" .Data.Form.Template.ID }} {{ end }}