-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (92 loc) · 3.81 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
<!DOCTYPE html>
<html ng-app="pixma">
<head>
<meta charset="utf-8">
<title>piXma API Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="lib/bootstrap/css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="lib/gallery/css/bootstrap-image-gallery.min.css">
<link href="css/custom.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<!-- link href="lib/bootstrap/css/bootstrap-responsive.css" rel="stylesheet"-->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="lib/jquery/jquery-1.8.3.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/gallery/js/load-image.min.js"></script>
<script src="lib/gallery/js/bootstrap-image-gallery.min.js"></script>
<script src="lib/moment/moment.min.js"></script>
<!-- use default angular because of patched version. search for XXX -->
<script src="lib/angular/1.0.3/angular.js"></script>
<script src="lib/angular/1.0.3/angular-resource.js"></script>
<script src="lib/angular/1.0.3/angular-cookies.js"></script>
<script src="lib/angular/1.0.3/angular-sanitize.min.js"></script>
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/filters.js"></script>
<script src="js/auth_interceptor.js"></script>
<script src="js/services.js"></script>
</head>
<body class="PixmaAuth">
<div id="loginDialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="LoginModal"
aria-hidden="true" ng-controller="LoginCtrl">
<div class="modal-header">
<h4>Sign in with eXma credentials</h4>
</div>
<div class="modal-body">
<div class="alert alert-error" ng-show="authError">
{{authError}}
</div>
<form name="form" ng-submit="login()">
<label>Login</label>
<input name="login" type="text" ng-model="user.login" required autofocus>
<label>Password</label>
<input name="pass" type="password" ng-model="user.password" required>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-primary login" ng-click="login()" ng-disabled='form.$invalid'>Sign in</button>
<button class="btn clear" ng-click="clearForm()">Clear</button>
</div>
</div>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">piXma API Demo</a>
<div class="nav-collapse collapse">
<ul class="nav pull-right" ng-controller="UserCtrl">
<li class="divider-vertical"></li>
<li ng-show="isAuthenticated()">
<a href="#">{{userInfo()}}</a>
</li>
<li ng-show="isAuthenticated()">
<form class="navbar-form">
<button class="btn" ng-click="logout()">Log out</button>
</form>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div ng-view></div>
</div>
<!-- /container -->
</body>
</html>