Commit before angular update
This commit is contained in:
parent
e407ecdf29
commit
31aa39335a
5 changed files with 102 additions and 47 deletions
|
@ -25,6 +25,12 @@ div.card{
|
||||||
}
|
}
|
||||||
|
|
||||||
p.price{
|
p.price{
|
||||||
font-family: 'Roboto-Mono', monospace;
|
font-family: 'Roboto Mono', monospace;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rv_price {
|
||||||
|
font-family: Roboto Mono;
|
||||||
|
font-size: 16px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
|
@ -1,19 +1,35 @@
|
||||||
<div *ngIf="items.length > 0">
|
<div *ngIf="items.length > 0">
|
||||||
<div class="card" *ngFor="let item of itemsUpdate | async">
|
<div class="card" *ngFor="let item of itemsUpdate | async">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<table cellspacing="0" width="100%" class="text">
|
<table cellspacing="0" width="100%" >
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{item.name}}</td>
|
<td style="font-family: Roboto Mono;
|
||||||
<td align="right">
|
font-size: 16px;
|
||||||
<p class="price">{{item.cost | currency: getCurrency() }}</p>
|
font-weight: 700;
|
||||||
<p class="price" *ngIf="!owner.zats"><img class="icon" src="/assets/spartan-zec.png" width="12px" />{{(item.cost/price) | number: '1.0-6'}}</p>
|
height: 20px;">
|
||||||
<p class="price" *ngIf="owner.zats">ⓩ {{(item.cost/price)*100000000 | number: '1.0-0'}}</p>
|
{{item.name}}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="font-family: Roboto Mono;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 400;
|
||||||
|
height: 20px;">
|
||||||
|
{{item.description}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="rv_price" *ngIf="!owner.zats">
|
||||||
|
{{item.cost | currency: getCurrency() }}
|
||||||
|
[<img class="icon"
|
||||||
|
src="/assets/zec_rv.png"
|
||||||
|
height="18px" />{{(item.cost/price) | number: '1.0-6'}}]
|
||||||
|
</div>
|
||||||
|
<p class="price" *ngIf="owner.zats"> ⓩ(item.cost/price)*100000000 | number: '1.0-0'}}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div align="center">
|
|
||||||
<p class="text small">{{item.description}}</p>
|
|
||||||
</div>
|
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<table cellspacing="0" width="100%">
|
<table cellspacing="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
margin: auto;'>
|
margin: auto;'>
|
||||||
<img src="/assets/zec_rv.png"
|
<img src="/assets/zec_rv.png"
|
||||||
style='height: 16px;
|
style='height: 16px;
|
||||||
margin: auto; '/> {{order.totalZec | number: '1.0-6'}}
|
margin: auto; '/> {{order.totalZec | number: '1.06'}}
|
||||||
</span>
|
</span>
|
||||||
</mat-panel-title>
|
</mat-panel-title>
|
||||||
<mat-panel-description>
|
<mat-panel-description>
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
img.icon{
|
img.icon{
|
||||||
margin-bottom: -3px;
|
margin-bottom: -2px;
|
||||||
|
height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tbheader {
|
.tbheader {
|
||||||
|
|
|
@ -6,34 +6,65 @@
|
||||||
No open order!
|
No open order!
|
||||||
</div>
|
</div>
|
||||||
<mat-card style="margin-top: 10px;" *ngIf="order.address.length" >
|
<mat-card style="margin-top: 10px;" *ngIf="order.address.length" >
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<mat-card-title>
|
<mat-card-title>
|
||||||
<table cellspacing="0" width="100%">
|
<table style="width: 100%;"
|
||||||
<tr>
|
cellspacing="0">
|
||||||
<td>Order Total:</td>
|
<tr style="font-family: Roboto Mono;
|
||||||
<td align="right">
|
font-size: 18px;
|
||||||
<p class="number">{{total | currency: getCurrency()}}</p>
|
font-weight: 700;
|
||||||
<p class="number"><img class="icon" src="/assets/zec_rv.png" width="15px" />{{(total/price) | number: '1.0-6'}}</p>
|
height: 20px;">
|
||||||
|
<td width="50%">Order Total:</td>
|
||||||
|
<td width="50%" align="right">
|
||||||
|
{{total | currency: getCurrency()}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="font-family: Roboto Mono;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
height: 20px;">
|
||||||
|
<td width="50%"> </td>
|
||||||
|
<td align="right"
|
||||||
|
width="50%">
|
||||||
|
<img class="icon" src="/assets/zec_rv.png" >
|
||||||
|
{{(total/price) | number: '1.0-6'}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</mat-card-title>
|
</mat-card-title>
|
||||||
<table width="100%">
|
<table style="width: 100%;">
|
||||||
|
<!--
|
||||||
|
<div style="display: block;">
|
||||||
|
-->
|
||||||
|
<thead style="width: 100%;">
|
||||||
<tr style="background: lightblue;">
|
<tr style="background: lightblue;">
|
||||||
<th class="tbheader"
|
<th style= "font-family: Roboto Mono;
|
||||||
style="text-align: left;"
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-align: left;"
|
||||||
width="55%">Item
|
width="55%">Item
|
||||||
</th>
|
</th>
|
||||||
<th class="tbheader"
|
<th style= "font-family: Roboto Mono;
|
||||||
style="text-align: left;"
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-align: left;"
|
||||||
width="15%">Qty.
|
width="15%">Qty.
|
||||||
</th>
|
</th>
|
||||||
<th class="tbheader"
|
<th style= "font-family: Roboto Mono;
|
||||||
style="text-align: right;"
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-align: right;"
|
||||||
width="30%">Total
|
width="30%">Total
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr *ngFor="let item of order.lines">
|
</thead>
|
||||||
|
<!--
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
|
<tbody style="overflow-y: auto;
|
||||||
|
overflow-x: hidden;">
|
||||||
|
<tr style="height: 20px !important;" *ngFor="let item of order.lines">
|
||||||
<td class="tbdetail"
|
<td class="tbdetail"
|
||||||
style="text-align: left;"
|
style="text-align: left;"
|
||||||
width="55%">{{item.name}}
|
width="55%">{{item.name}}
|
||||||
|
@ -47,6 +78,7 @@
|
||||||
width="30%">{{item.qty * item.cost | number:'1.02'}}
|
width="30%">{{item.qty * item.cost | number:'1.02'}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
|
|
Loading…
Reference in a new issue