-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (48 loc) · 2.15 KB
/
index.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
<!DOCTYPE html>
<html lang="en" ng-app="buildAppCalculator">
<head>
<link rel="stylesheet" href="css/bootstrap.min.v311.css">
<link rel="stylesheet" href="css/style.css">
<meta charset="UTF-8">
<title>Otreva Challange</title>
</head>
<body>
<!--Platforms-->
<div class="container">
<!--Select platforms-->
<div class="panel-heading" ng-controller="PlatformController as platformCtrl">
<h1 class="text-center">Platforms</h1>
<!--Show all platforms-->
<div class="text-center">
<button ng-repeat="platform in platformCtrl.devices" class="btn btn-primary platform-btn-style">{{ platform.name }}</button>
</div>
</div><!-- end select platforms / PlatformController-->
<!--Select App Features-->
<div class="panel-heading" ng-controller="FeaturesController as featuresCtrl">
<h1 class="text-center">App Features</h1>
<div class="text-center">
<div ng-repeat="app in featuresCtrl.apps track by $index" class="btn btn-primary platform-btn-style" ng-click="featuresCtrl.setSelected(app,$index)" ng-class="{selected: app.selected}">{{ app.name }}</div>
</div>
<div>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Device Added</th>
<th>Device Price</th>
<th></th>
</tr>
</thead>
<tr ng-repeat="appList in featuresCtrl.listAppPrices">
<td>{{ appList.name }}</td>
<td>{{ appList.price }}</td>
<!--<td><button class="btn btn-default" ng-click="featuresCtrl.remove($index)">Remove</button></td>-->
</tr>
</table>
<div>Total : {{ featuresCtrl.totalAppPrice() }}</div>
</div>
</div><!-- end select app features / FeaturesController-->
</div>
<script src="js/angular.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>