This commit is contained in:
kevinpauer 2022-05-03 11:45:17 +02:00
parent db6b7a7f02
commit 4116f09b5b
2 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@
<ng-container matColumnDef="current_price"> <ng-container matColumnDef="current_price">
<th mat-header-cell *matHeaderCellDef>Price</th> <th mat-header-cell *matHeaderCellDef>Price</th>
<td mat-cell *matCellDef="let element"> <td mat-cell *matCellDef="let element">
{{ element.current_price }} {{ element.current_price }}$
</td> </td>
</ng-container> </ng-container>
@ -84,18 +84,18 @@
<div class="row"> <div class="row">
<div class="col-6 col-sm-4"> <div class="col-6 col-sm-4">
<mat-icon>savings</mat-icon <mat-icon>savings</mat-icon
><span class="money">{{ depotCurrentValue.toFixed(2) }}</span> ><span class="money">{{ depotCurrentValue.toFixed(2) }}$</span>
</div> </div>
<div class="col-6 col-sm-4"> <div class="col-6 col-sm-4">
<mat-icon>paid</mat-icon <mat-icon>paid</mat-icon
><span class="money">{{ depotCost.toFixed(2) }}</span> ><span class="money">{{ depotCost.toFixed(2) }}$</span>
</div> </div>
<div class="col-6 col-sm-4"> <div class="col-6 col-sm-4">
<mat-icon>account_balance</mat-icon <mat-icon>account_balance</mat-icon
><span ><span
class="money" class="money"
[ngClass]="{ green: profit >= 0, red: profit < 0 }" [ngClass]="{ green: profit >= 0, red: profit < 0 }"
>{{ profit.toFixed(2) }}</span >{{ profit.toFixed(2) }}$</span
> >
</div> </div>
</div> </div>
@ -140,7 +140,7 @@
<!-- Name Column --> <!-- Name Column -->
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef>Price</th> <th mat-header-cell *matHeaderCellDef>Price</th>
<td mat-cell *matCellDef="let element">{{ element.price }}</td> <td mat-cell *matCellDef="let element">{{ element.price }}$</td>
</ng-container> </ng-container>
<!-- Weight Column --> <!-- Weight Column -->

View File

@ -55,7 +55,7 @@
/> />
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="price">Price</label> <label for="price">Price in $</label>
<input <input
class="form-control" class="form-control"
name="price" name="price"