{{define "task_template_fields"}} {{$form := .Form}} {{with index $form.Errors "title"}}

{{.}}

{{end}} {{if and $form.Origin (not (eqString $form.Origin "manual"))}}

Automatisch aus den Saisonangaben der Art abgeleitet.

{{end}}
Ab
{{with index $form.Errors "date"}}

{{.}}

{{end}}
Nach
Bis in
{{with index $form.Errors "duration"}}

{{.}}

{{end}}
Wiederholung

Die nächste Aufgabe wird erst beim Erledigen angelegt.

{{with index $form.Errors "recurrence_interval"}}

{{.}}

{{end}}
{{end}} {{define "task_template_dialog"}} {{$species := index .Species 0}} {{$action := pathWithQuery (webPath "task-template.new" .Garden.ID) "species_id" .SpeciesID}}{{if .TemplateID}}{{$action = pathWithQuery (webPath "task-template.edit" .Garden.ID .TemplateID) "species_id" .SpeciesID}}{{end}}

{{$species.CommonName}}

{{if .TemplateID}}Aufgabe bearbeiten{{else}}Aufgabe anlegen{{end}}

{{template "task_template_fields" .}}
{{end}}