-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
120 lines (105 loc) · 5.41 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
<!DOCTYPE html>
<html 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">
<title>Wazo Authentification</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,100,300,500">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/css/bootstrap-select.min.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div class="container">
<div class="row hidden" id="login">
<div class="col-sm-6 col-sm-offset-3 form-box">
<div class="form-top">
<div class="form-top-left">
<h1>Log in to Wazo</h1>
<p>Enter your username and password to log on:</p>
</div>
<div class="form-top-right">
<i class="fa fa-lock"></i>
</div>
</div>
<div class="form-bottom" id="authenticate">
<form>
<div class="input-group form-group">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input type="text" name="form-username" placeholder="Username" class="form-control input-lg" id="username" required autofocus>
</div>
<div class="input-group form-group">
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
<input type="password" name="form-password" placeholder="Password" class="form-control input-lg" id="password" required autofocus>
</div>
<hr>
<div class="input-group form-group form-inline">
<span class="input-group-addon"><i class="fa fa-server"></i></span>
<input type="text" id="host" class="form-control input-lg" placeholder="Please set a wazo-auth..." data-toggle="tooltip" data-placement="bottom" title="Looks like https://address_ip_wazo:9497" required>
<select id="backend" class="selectpicker" data-width="auto" data-style="form-control btn-danger" required>
<option value="">Missing backend</option>
</select>
</div>
<button type="submit" class="btn btn-lg btn-danger">Sign in!</button>
<div class="loader text-center">Looking for backends, please wait...</div>
</form>
</div>
<div id="error" class="alert alert-danger hidden" role="alert"></div>
</div>
</div>
<div class="row hidden" id="main">
<div class="row">
<div class="col-md-12 text-right">
<button id="logout" class="btn btn-sm btn-primary" type="button">Logout</button>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h1 class="text-center">Congrats! You are logged into Wazo</h1>
<br>
</div>
</div>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<table id="auth" class="table table-striped"></table>
</div>
<div class="col-md-2"></div>
</div>
</div>
<div class="modal fade" id="tutorial" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" 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" id="myModalLabel">Welcome to Wazo auth</h4>
</div>
<div class="modal-body text-left">
<p>Hello, this is your first connection to this system or your wazo-auth host connection is empty.</p>
<p>If it your first time, please take time to understand how does it work and what you can do here.</p>
<p>You need to a connection to your wazo-auth service. By default it looks like <strong>https://ip_address_of_your_wazo:9497</strong>.
Please accept the certificate on your service</p>
<p>The backends:
<ul>
<li>wazo-user: use wazo-auth user.</li>
</ul>
</p>
<p>Thank you for supporting <strong>Wazo!</strong></p>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://jpillora.com/jquery.rest/dist/1/jquery.rest.min.js"></script>
<script src="https://rawgit.com/sboily/xivo-js/master/src/auth.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.0.4/js.cookie.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-backstretch/2.0.4/jquery.backstretch.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/js/bootstrap-select.min.js"></script>
<script src="https://rawgit.com/mckamey/countdownjs/master/countdown.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>