75 lines
3.2 KiB
HTML
75 lines
3.2 KiB
HTML
<!doctype html>
|
|
<html ng-app="eventManApp">
|
|
<head>
|
|
<title>EventMan{ager} - Login</title>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<script src="/static/js/jquery-2.1.3.min.js"></script>
|
|
<script src="/static/js/bootstrap.min.js"></script>
|
|
<link href="/static/css/normalize.css" rel="stylesheet">
|
|
<link href="/static/css/bootstrap.css" rel="stylesheet">
|
|
<link href="/static/css/bootstrap-theme.css" rel="stylesheet">
|
|
<link href="/static/css/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet">
|
|
<link href="/static/css/eventman.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<!--
|
|
Copyright 2015 Davide Alberani <da@erlug.linux.it>
|
|
RaspiBO <info@raspibo.org>
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="panel panel-primary table-striped top5">
|
|
<div class="panel-heading">Login</div>
|
|
<div class="panel-body">
|
|
<div id="wronglogin" class="alert alert-danger alert-dismissible hidden" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<strong>Error!</strong> Wrong username and password.
|
|
</div>
|
|
<form method="POST">
|
|
<div class="input-group input-group-lg">
|
|
<span class="input-group-addon min150">Username</span>
|
|
<input type="text" id="username" name="username" class="form-control" placeholder="admin">
|
|
</div>
|
|
<div class="input-group input-group-lg top10">
|
|
<span class="input-group-addon min150">Password</span>
|
|
<input type="password" id="password" name="password" class="form-control" placeholder="eventman">
|
|
</div>
|
|
<button type="submit" class="btn btn-success top10">login</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script>
|
|
|
|
function getUrlParameter(sParam) {
|
|
var sPageURL = window.location.search.substring(1);
|
|
var sURLVariables = sPageURL.split('&');
|
|
for (var i = 0; i < sURLVariables.length; i++) {
|
|
var sParameterName = sURLVariables[i].split('=');
|
|
if (sParameterName[0] == sParam) {
|
|
return sParameterName[1];
|
|
}
|
|
}
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
if (getUrlParameter('failed')) {
|
|
$('#wronglogin').removeClass('hidden');
|
|
}
|
|
});
|
|
|
|
</script>
|
|
</html>
|