5 changed files with 73 additions and 43 deletions
@ -0,0 +1,17 @@ |
|||||
|
mixin renderWeeklySummaryReport (data) |
||||
|
table.uk-table.uk-table-small.uk-table-justify.no-select |
||||
|
thead |
||||
|
tr |
||||
|
th Project |
||||
|
th Client |
||||
|
th Sessions |
||||
|
th Time Worked |
||||
|
th Billable |
||||
|
tbody |
||||
|
each row in data |
||||
|
tr |
||||
|
td.uk-table-expand=row.project.name |
||||
|
td= row.project.client.name |
||||
|
td= formatCount(row.sessionCount) |
||||
|
td= numeral(row.duration).format('0:00:00') |
||||
|
td= numeral(row.billable).format('$0,0.00') |
@ -1,16 +1,8 @@ |
|||||
extends ../layout/main |
extends ../layout/main |
||||
block view-content |
block view-content |
||||
|
|
||||
|
include components/weekly-summary |
||||
|
|
||||
section.uk-section.uk-section-default.uk-section |
section.uk-section.uk-section-default.uk-section |
||||
.uk-container |
.uk-container |
||||
|
+renderWeeklySummaryReport(weeklyEarnings) |
||||
div(uk-grid).uk-flex-between |
|
||||
.uk-width-auto |
|
||||
.uk-text-bold.uk-text-small Sessions |
|
||||
div= formatCount(weeklyEarnings.sessionCount) |
|
||||
.uk-width-auto |
|
||||
.uk-text-bold.uk-text-small Hours |
|
||||
div= numeral(weeklyEarnings.duration).format('0:00:00') |
|
||||
.uk-width-auto |
|
||||
.uk-text-bold.uk-text-small Billable |
|
||||
div= numeral(weeklyEarnings.billable).format('$0,0.00') |
|
Loading…
Reference in new issue