-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcfbbf2
commit 3183960
Showing
6 changed files
with
39 additions
and
52 deletions.
There are no files selected for viewing
37 changes: 18 additions & 19 deletions
37
apps/picsa-tools/budget-tool/src/app/components/budget-summary/budget-summary.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
<div class="summary-container"> | ||
<h4>Details</h4> | ||
<div class="summary-list"> | ||
<p matTooltip="Total Family Labour Hours"> | ||
<img [src]="getImagePath('family', 'svg')" alt="Groups Icon" class="icon" />: | ||
<b>{{ totalFamilyLabourHours }}</b> | ||
</p> | ||
<p matTooltip="Total Inputs Value"> | ||
<section matTooltip="Total Family Labour Hours"> | ||
<mat-icon svgIcon="picsa_budget_family-labour" class="summary-icon"></mat-icon> | ||
<span class="summary-value">{{ totalFamilyLabourHours }} {{ 'hours' | translate }}</span> | ||
</section> | ||
<!-- TODO - confirm with UoR if inputs/outputs preferred alongside net cash balance --> | ||
<!-- <p matTooltip="Total Inputs Value"> | ||
<img [src]="getImagePath('inputs', 'svg')" alt="Receipt Icon" class="icon" /> : <b>{{ totalInputsValue }}</b> | ||
</p> | ||
<p matTooltip="Total Outputs Value"> | ||
<img [src]="getImagePath('outputs', 'svg')" alt="Monetization Icon" class="icon" />: | ||
<b>{{ totalOutputsValue }}</b> | ||
</p> | ||
<div *ngFor="let produce of totalProduceSummary"> | ||
<p [matTooltip]="'Total ' + produce.label + ' consumed'"> | ||
<img [src]="getImagePath(produce.id, produce.extension)" [alt]="produce.label + ' Icon'" class="icon" /> | ||
: <b>{{ produce.total }}</b> | ||
</p> | ||
</div> | ||
<p matTooltip="Final Cash Balance"> | ||
<img [src]="getImagePath('cash-balance', 'svg')" alt="Wallet Icon" class="icon" />: | ||
<b>{{ finalCashBalance }}</b> | ||
</p> | ||
</div> | ||
</p> --> | ||
@for (produce of totalProduceSummary; track produce.id) { | ||
<section [matTooltip]="'Total ' + produce.label + ' consumed'"> | ||
<img [src]="produce.imgPath" [alt]="produce.label + ' Icon'" class="summary-icon" /> | ||
<span class="summary-value">{{ produce.total }} {{ 'consumed' | translate }}</span> | ||
</section> | ||
} | ||
|
||
<section matTooltip="Final Cash Balance"> | ||
<mat-icon svgIcon="picsa_budget_cash_balance" alt="Wallet Icon" class="summary-icon" /> | ||
<span class="summary-value">{{ finalCashBalance }} {{ 'balance' | translate }}</span> | ||
</section> | ||
</div> |
47 changes: 16 additions & 31 deletions
47
apps/picsa-tools/budget-tool/src/app/components/budget-summary/budget-summary.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,20 @@ | ||
:host { | ||
display: block; | ||
} | ||
.summary-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
|
||
h4 { | ||
margin: 0 0 0.5rem 0; | ||
} | ||
|
||
.summary-list { | ||
display: flex; | ||
gap: 1rem; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; | ||
align-items: flex-start; | ||
|
||
p { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
margin: 0; | ||
padding: 0; | ||
font-weight: 400; | ||
|
||
.mat-icon { | ||
font-size: 1.2rem; | ||
} | ||
|
||
.icon { | ||
width: 1.2rem; | ||
height: 1.2rem; | ||
} | ||
} | ||
} | ||
gap: 8px; | ||
} | ||
section { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.summary-icon { | ||
width: 24px; | ||
height: 24px; | ||
font-size: 24px; | ||
} | ||
.summary-value { | ||
margin-left: 8px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters