forked from df-jsykes/sdk-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·77 lines (71 loc) · 3.25 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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no">
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-5">
<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="#">DreamFactory<sup>TM</sup></a>
<p class="navbar-text">Sample Auth & CRUD App</p>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-5">
<div id="login-form" class="navbar-form navbar-left" role="search">
<div class="form-group">
<input class="form-control" id="email" type="email" placeholder="email">
<input class="form-control" type="password" id = "password" placeholder="password">
</div>
<button class="btn btn-info" onclick="myApp.login()"><span class="glyphicon glyphicon-log-in"></span> Login</button>
</div>
<span style="display:inline-block" class="navbar-text navbar-right" id="current-user"></span><button onclick ="myApp.logout()" id="logout-button" class = "btn btn-default navbar-btn pull-right"><span class="glyphicon glyphicon-log-out"></span> Log out</button>
</div>
</div>
</nav>
<div id="error-div" class="alert alert-danger"></div>
<div id="progress-bar" class="text-center"><h4 id="loading-message">Loading Dreamfactory APIs</h4>
<div class="progress progress-striped active text-center">
<div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"
style="width: 100%">
<span class="sr-only">100% Complete</span>
</div>
</div>
</div>
<br/>
<div id="data-container">
<button onclick = "myApp.listLocalDatabases()" id="back-button" class = "btn btn-info"><span class="glyphicon glyphicon-chevron-left"></span> Back To Tables</button>
<span id="data-status"></span>
<div id="table-container">
<h4 id="data-message"></h4>
<table id="data-table" class="table table-striped table-bordered">
</table>
</div>
</div>
<div id="form-container">
</div>
<div id="console-container">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">SDK Console</h3>
</div>
<div class="panel-body" id="console">
</div>
</div>
</div>
</div>
<script src='lib/jquery.js' type='text/javascript'></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js" type="text/javascript"></script>
<script src='lib/dreamfactory.js' type='text/javascript'></script>
<script src='app.js' type='text/javascript'></script>
</body>
</html>