summaryrefslogtreecommitdiff
path: root/templates/report.t
blob: 39e2a1904c241650c4c671f28b3c4de7081bb880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Project:     {{.Name}}
Grant:       {{.Grant}}
Start:       {{.Start}}
End:         {{.End}}
Beneficiary: {{.Beneficiary}}
{{- $p := . }}
{{- $totals := .Totals }}

# Planning

Budgeted : {{ printf "%8s" $totals.Budgeted }}
 Planned : {{ printf "%8s" $totals.Planned }}{{with $totals.Unaccounted}}
 ! Open !: {{ printf "%8s" . }}{{end}}
    Done : {{ printf "%8s" $totals.Done }}{{ with $totals.Open }}
 ! Todo !: {{ printf "%8s" . }}
Time left: {{ printf "%8s" ($p.AsDaysAmount (len $p.DaysRemaining)) }} * {{len $p.Users}}{{end}}

{{ range .ParallelWPTotals }}{{.}}
{{ end }}

{{range $wp, $t := $totals.WP }}
Total for {{ $wp }}:
  - Budgeted: {{ printf "%8s" $t.Budgeted.AsDay }}
  - Planned:  {{ printf "%8s" $t.Planned.AsDay }}{{with $t.Unaccounted }}   !Unaccounted: {{printf "%8s" .AsDay}}{{end}}
  - Actual:   {{ printf "%8s" $t.Done.AsDay }}{{with $t.Open }}   !Todo!: {{printf "%8s" .AsDay }}{{end}}
  - Per Task:
  {{- range $n, $t := $t.Tasks }}
     - {{ $n }}:{{ $tt := $p.TotalWPTask $wp $n }}
       - Budgeted: {{ printf "%8s" $tt.Budgeted.AsDay }}
       - Planned:  {{ printf "%8s" $tt.Planned.AsDay }}{{with $tt.Unaccounted }}   !Unaccounted: {{printf "%8s" .AsDay}}{{end}}
       - Actual:   {{ printf "%8s" $tt.Done.AsDay }}{{with $tt.Open }}   !Todo!: {{printf "%8s" .AsDay}}{{end}}
  {{ end }}
{{ end }}