This repository has been archived by the owner on Sep 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
225 lines (206 loc) · 10.3 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE HTML>
<html ng-app="helloWorld" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>SAP Cloud Tutorials: Create a Web Front End with Angular.JS in Web IDE</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" />
<!-- Optional theme -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous" />
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet" />
<!-- Custom styles for this template -->
<link href="css/main.css" rel="stylesheet" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="//oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Bootstrap core JavaScript
================================================== -->
<script src="//code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="js/ie-emulation-modes-warning.js"></script>
<!-- Angular app JavaScript
================================================== -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.7.8/angular.js"></script>
<script src="js/main.js"></script>
</head>
<body ng-controller="helloController">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">SAP Cloud Tutorials</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Dashboard</a></li>
<li><a href="#">Product Overview</a></li>
<li><a href="#">Settings</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Help</a></li>
</ul>
<form class="navbar-form navbar-right" role="search">
<input type="text" class="form-control" placeholder="Search...">
</form>
</div>
</div>
</nav> <!-- /.navbar -->
<div class="alert aftoast aftoast-top" id="order-alert-box" role="alert" aria-live="assertive" aria-atomic="true"
ng-if="orderAlert"
ng-class="{
'alert-success' : orderAlert.type == 'success',
'alert-info' : orderAlert.type == 'info',
'alert-warning' : orderAlert.type == 'warn',
'alert-danger' : orderAlert.type == 'error'
}">
<strong ng-switch="orderAlert.type">
<span ng-switch-when="success">Order successful.</span>
<span ng-switch-when="info">Order info.</span>
<span ng-switch-when="warn">Order warn.</span>
<span ng-switch-when="error">Order fail.</span>
</strong>
{{orderAlert.message}}
</div><!-- /.alert #order-alert-box -->
<div role="main" class="main container-fluid">
<!-- Example of page header -->
<div class="page-header">
<h1>Hello, world!</h1>
<p>Angular.JS is a very popular web application framework. It is one of many choices for web application designs supported by SAP. Learn how to use Angular.JS inside the SAP Cloud, using Web IDE.</p>
<p><a class="btn btn-primary btn-lg" href="https://developers.sap.com/group.cp-frontend-angular-1.html" role="button">Learn more »</a></p>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Products Overview</h2>
<div class="panel-search form-group">
<input type="text" class="form-control" placeholder="Filter" ng-model="productFilter">
</div>
<span class="label label-primary" ng-if="!!!productFilter">Items: {{productList.length}}</span>
<span class="label label-info" ng-if="!!productFilter">Items (filtered): {{productFilterCount()}} / {{productList.length}}</span>
</div>
<div class="list-group">
<button type="button" class="list-group-item" ng-click="selectProduct(product)" ng-repeat="product in productList | filter:productFilter">
<div class="row vertical-align">
<div class="col-sm-8 top">
<h4>{{product.ProductName}}</h4>
<p>{{product.QuantityPerUnit}}</p>
</div>
<div class="col-sm-3 text-right top">
<h4>{{product.UnitPrice | number:2}} <small class="text-muted">{{product.currency || 'EUR'}}</small></h4>
<p class="{{product.Discontinued | discontinued:'css'}}">{{product.Discontinued | discontinued}}</p>
</div>
<div class="col-sm-1 center">
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
</div>
</div>
</button>
</div>
</div>
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p class="text-center"><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p class="text-center"><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
<p class="text-center"><a class="btn btn-default" href="#" role="button">View details »</a></p>
</div>
</div>
</div> <!-- /.main -->
<div class="modal fade" tabindex="-1" role="dialog" id="product-detail">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Product Detail - {{selectedProduct.ProductName}}</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label">Product ID</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.ProductID}}</p>
</div>
<label class="col-sm-3 control-label">Product Name</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.ProductName}}</p>
</div>
<label class="col-sm-3 control-label">Quantity Per Unit</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.QuantityPerUnit}}</p>
</div>
<label class="col-sm-3 control-label">Unit Price</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.UnitPrice | number:2}} <small class="text-muted">{{selectedProduct.currency || 'EUR'}}</small></p>
</div>
<label class="col-sm-3 control-label">Status</label>
<div class="col-sm-9">
<p class="form-control-static {{selectedProduct.Discontinued | discontinued:'css'}}">{{selectedProduct.Discontinued | discontinued}}</p>
</div>
<label class="col-sm-3 control-label">Category</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.CategoryID}}</p>
</div>
<label class="col-sm-3 control-label">Reorder Level</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.ReorderLevel}}</p>
</div>
<label class="col-sm-3 control-label">Supplier</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.SupplierID}}</p>
</div>
<label class="col-sm-3 control-label">Units In Stock</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.UnitsInStock}}</p>
</div>
<label class="col-sm-3 control-label">Units On Order</label>
<div class="col-sm-9">
<p class="form-control-static">{{selectedProduct.UnitsOnOrder}}</p>
</div>
<label class="col-sm-3 control-label" for="orderAmount">Order Amount</label>
<div class="col-sm-6">
<input type="number" class="form-control" id="orderAmount"
placeholder="Enter number of units to order"
ng-model="orderAmount" />
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" ng-click="orderItem()">Order</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal #product-detail -->
<footer class="footer">
<div class="container">
<p class="text-center text-muted">© 2019 Company, Inc.</p>
</div>
</footer> <!-- /.footer -->
</body>
</html>