diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/timesheet.yml.tmpl | 11 | ||||
-rw-r--r-- | templates/weekly_timesheet.yml.tmpl | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/templates/timesheet.yml.tmpl b/templates/timesheet.yml.tmpl new file mode 100644 index 0000000..1930b09 --- /dev/null +++ b/templates/timesheet.yml.tmpl @@ -0,0 +1,11 @@ +{{- define "timesheet" -}} +- client: {{.Client}} + project: {{.Project}} + module: {{.Module}} + task: {{.Task}} + work_type: {{.WorkType}} + date: {{.Date.Format "02/01/06"}} + time: {{.Time}} + billable: {{.Billable}} + description: {{.Description}} +{{ end -}} diff --git a/templates/weekly_timesheet.yml.tmpl b/templates/weekly_timesheet.yml.tmpl new file mode 100644 index 0000000..0ea6582 --- /dev/null +++ b/templates/weekly_timesheet.yml.tmpl @@ -0,0 +1,3 @@ +{{- range . -}} + {{- template "timesheet" . -}} +{{- end -}} |