{{if .Success}}

{{.Success}}

{{end}} {{if .Error}}

{{.Error}}

{{end}} {{$habit := .Habit}}

{{.Habit.Name}} {{.Habit.ValueType}}{{if .Habit.Unit}} {{.Habit.Unit}}{{end}}

edit habit
{{if .Habit.Description}}

{{.Habit.Description}}

{{end}}

New record

{{if eq .Habit.ValueType "bool"}} {{else if eq .Habit.ValueType "int"}} {{else if eq .Habit.ValueType "float"}} {{else}} {{end}}

Records ({{.Habit.RecordCount}})

{{if not .Days}}

No records yet. Add one above.

{{else}} {{range .Days}}

{{.Date}}

{{end}} {{end}}