{{define "trackers_es"}}

{{if .TargetDossier}}{{.TargetDossier.Name}}'s {{end}}Registro Diario

Registra mediciones y observaciones diarias

Escribe lo que quieres registrar (p. ej., "tomo vitamina D cada mañana" o "caminé 30 minutos hoy"). El sistema aprenderá patrones y creará rastreadores de seguimiento.

{{if .Error}}
{{.Error}}
{{end}} {{if .Success}}
{{.Success}}
{{end}} {{if or .AllTrackers .Entries .FreeformTrackers}}
{{/* 1. FILLED CARDS - Entries from today (SHOW FIRST) */}} {{range .Entries}}
{{.Question}}
editar {{.Category}} {{.TimeFormatted}}
{{if .Groups}} {{if eq .Layout "two-column"}} {{/* Two-column layout - first two groups side-by-side */}}
{{range $i, $g := .Groups}} {{if lt $i 2}}
{{if $g.Title}}
{{$g.Title}}
{{end}}
{{range $g.Fields}} {{if eq .Type "number"}}
{{if .Label}}{{.Label}}:{{end}} {{if .Unit}}{{.Unit}}{{end}}
{{end}} {{end}}
{{end}} {{end}}
{{/* Remaining groups below (index 2+) */}} {{range $i, $g := .Groups}} {{if ge $i 2}}
{{if $g.Title}}
{{$g.Title}}
{{end}} {{range $g.Fields}} {{if eq .Type "text"}} {{if .Value}}
{{.Value}}
{{end}} {{end}} {{end}}
{{end}} {{end}} {{else}} {{/* Regular grouped fields */}} {{range .Groups}}
{{if .Title}}
{{.Title}}
{{end}}
{{range .Fields}} {{if eq .Type "number"}}
{{if .Label}}{{.Label}}:{{end}} {{if .Unit}}{{.Unit}}{{end}}
{{else if eq .Type "text"}} {{if .Value}}
{{.Value}}
{{end}} {{end}} {{end}}
{{end}} {{end}} {{else if .Fields}} {{/* Flat fields */}}
{{range .Fields}} {{if eq .Type "number"}} {{if .Label}}{{.Label}}{{end}} {{if .Unit}}{{.Unit}}{{end}} {{else if eq .Type "checkbox"}} {{end}} {{end}}
{{end}}
{{if .SourceInput}}
Creado desde: "{{.SourceInput}}"
{{end}}
{{end}} {{/* 2. ALL PROMPTS - Unfilled trackers (due + upcoming) */}} {{range .AllTrackers}} {{if not .HasResponse}} {{template "tracker_card.tmpl" .}} {{end}} {{end}} {{/* 3. FREEFORM CARD - Always last */}} {{range .FreeformTrackers}}
{{.Question}} opcional
o presiona Ctrl+Enter
{{end}}
{{else}}

✨ Aún no hay rastreadores de seguimiento

Empieza registrando algo a continuación y el sistema aprenderá tus patrones.

Ejemplos:

{{end}}
← Volver al dossier
{{template "footer"}}
{{end}}