-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.html
124 lines (98 loc) · 2.95 KB
/
cart.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<md-dialog aria-label="Cart">
<md-dialog-content>
<div class="start-margin end-margin top-margin bottom-margin">
<!--<h1>Cart</h1>-->
<div layout="row">
<!-- Item -->
<div flex="60" class="center">
Item
</div>
<!-- Quantity -->
<div flex="20" class="end">
Quantity
</div>
<!-- Price -->
<div flex="20" class="end">
Unit Price
</div>
</div>
<hr>
<div layout="row" layout-align="center center" ng-repeat="item in items">
<!-- Item -->
<div flex="60" layout="row" layout-align="center center">
<div class="start-margin end-margin">
<img class="wl-image-small grey-bg" ng-src="http://lorempixel.com/500/500/">
</div>
<div>
{{item.name}}
</div>
</div>
<!-- Quantity -->
<div flex="20" layout='row' layout-fill layout-margin layout-align='end center'>
<!--<span class="glyphicon glyphicon-plus start-margin-small end-margin-small"></span>-->
<!--{{item.quantity}}-->
<!--<span class="glyphicon glyphicon-minus start-margin-small end-margin-small"></span>-->
<md-select ng-model="item.quantity" ng-change="recalculate()">
<md-option ng-value="qty" ng-repeat="qty in quantities">{{ qty }}</md-option>
</md-select>
</div>
<!-- Price -->
<div flex="20" class="end">S$ {{item.price | number:2}}</div>
</div>
<hr>
<div layout="row">
<!-- Subtotal -->
<div flex="20" offset="60">
<div class="end">
Subtotal
</div>
</div>
<div flex="20">
<div class="end">
S$ {{subtotal | number:2}}
</div>
</div>
</div>
<div layout="row">
<!-- Tax -->
<div flex="20" offset="60">
<div class="end">
Tax
</div>
</div>
<div flex="20">
<div class="end">
S$ {{tax | number:2}}
</div>
</div>
</div>
<div layout="row">
<div flex offset="50">
<hr>
</div>
</div>
<div layout="row">
<!-- Total -->
<div flex="20" offset="60">
<div class="end">
<b>Total</b>
</div>
</div>
<div flex="20">
<div class="end">
<b>S$ {{total | number:2}}</b>
</div>
</div>
</div>
<div layout-sm="column" layout="row" layout-align-sm="center end">
<div flex-gt-sm></div>
<div>
<md-button class="md-warn md-raised top-margin">Checkout</md-button>
</div>
<div>
<md-button class="md-primary md-raised top-margin" ng-click="back()">Cancel</md-button>
</div>
</div>
</div>
</md-dialog-content>
</md-dialog>