HABBITS
dashboard
new habit
settings
logout
{{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
Value{{if .Habit.Unit}} ({{.Habit.Unit}}){{end}}
{{if eq .Habit.ValueType "bool"}}
true
false
{{else if eq .Habit.ValueType "int"}}
{{else if eq .Habit.ValueType "float"}}
{{else}}
{{end}}
When
Add record
Records ({{.Habit.RecordCount}})
{{if not .Days}}
No records yet. Add one above.
{{else}} {{range .Days}}
{{.Date}}
{{range .Records}}
{{if eq $habit.ValueType "bool"}}
true
false
{{else if eq $habit.ValueType "int"}}
{{else if eq $habit.ValueType "float"}}
{{else}}
{{end}}
save
delete
{{end}}
{{end}} {{end}}