{{template "base" .}} {{define "content"}} {{$d := .}}

People

Sharing Household
{{if eq $d.Tab "sharing"}}

Grant read access

Enter another user's ID to let them view your finances in read-only mode.

{{if $d.Viewers}}

People with access to your data

{{range $d.Viewers}}
{{.Email}}
{{end}}
{{end}} {{if $d.Granted}}

Accounts you can view

{{range $d.Granted}}
{{.OwnerID}} View →
{{end}}
{{end}} {{if and (not $d.Viewers) (not $d.Granted)}}
No sharing configured yet.
{{end}} {{else}}{{/* household tab */}} {{if not $d.HasHousehold}}

Link a partner account

Combine finances with a partner to see a shared monthly overview and goals.

{{else}}
Linked partner
{{$d.PartnerEmail}}
€{{cents $d.CombinedIncomeCents}}
€{{cents $d.MyIncomeCents}}
€{{cents $d.PartnerIncomeCents}}
€{{cents $d.CombinedExpenseCents}}
{{if lt $d.CombinedDisposable 0}}-{{end}}€{{cents (centsAbs $d.CombinedDisposable)}}
{{if or $d.MyGoals $d.PartnerGoals}}

Your Goals

{{range $d.MyGoals}}
{{.Name}} {{if .Committed}}committed{{end}}
{{else}}
No goals
{{end}}

Partner Goals

{{range $d.PartnerGoals}}
{{.Name}} {{if .Committed}}committed{{end}}
{{else}}
No goals
{{end}}
{{end}} {{end}}{{/* HasHousehold */}} {{end}}{{/* tab */}} {{end}}