-
Notifications
You must be signed in to change notification settings - Fork 365
/
menu.html
66 lines (55 loc) · 1.69 KB
/
menu.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
<fm-deliver-to></fm-deliver-to>
<div class="container fm-restaurant">
<div class="row">
<div class="span2">
<img ng-src="img/restaurants/{{restaurant.id}}.jpg" class="img-rounded">
</div>
<div class="span10">
<h3>{{restaurant.name}}</h3>
<div class="row">
<div class="span2">
<div>{{restaurant.location}}</div>
<fm-rating symbol="★" max="5" disabled="true"
ng-model="$parent.restaurant.rating"></fm-rating>
<fm-rating symbol="$" max="5" disabled="true"
ng-model="$parent.restaurant.price"></fm-rating>
</div>
<div class="span4">
<div>{{restaurant.description}}</div>
</div>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span8 fm-panel fm-menu-list">
<h4>Menu</h4>
<ul>
<li ng-repeat="menuItem in restaurant.menuItems">
<span>{{menuItem.name}}</span>
<span>
<a href ng-click="cart.add(menuItem, restaurant)">
{{menuItem.price}} <i class="icon-plus-sign"></i>
</a>
</span>
</li>
</ul>
</div>
<div class="span4 fm-panel fm-cart">
<h4>Your order</h4>
<form>
<ul class="unstyled">
<li ng-repeat="item in cart.items">
<a href ng-click="cart.remove(item)"><i class="icon-remove-sign"></i></a>
{{item.qty}} × {{item.name}}
</li>
</ul>
<div class="pull-right" ng-show="cart.items.length">
<a href="#/checkout" ng-disabled="!cart.items.length" class="btn">Checkout</a>
</div>
<p>
<b>Total: {{cart.total() | currency}}</b>
</p>
</form>
</div>
</div>