Use spaces

This commit is contained in:
Jan Bader 2016-12-20 14:52:01 +01:00
parent 88eb29f855
commit cf03726643

View File

@ -1,12 +1,12 @@
{{define "register"}} {{define "register"}}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Registration</title> <title>Registration</title>
{{template "head"}} {{template "head"}}
<script> <script>
function checkPasswordMatchUi() { function checkPasswordMatchUi() {
if(checkPasswordMatch()) if(checkPasswordMatch())
$("#divCheckPasswordMatch").html("Passwords match."); $("#divCheckPasswordMatch").html("Passwords match.");
@ -23,8 +23,8 @@
$(document).ready(function () { $(document).ready(function () {
$("#password, #password_confirm").keyup(checkPasswordMatchUi); $("#password, #password_confirm").keyup(checkPasswordMatchUi);
$('#invalidCredentials').hide(); $('#invalidCredentials').hide();
$('#loginForm').ajaxForm({ $('#loginForm').ajaxForm({
beforeSubmit: function(a, b, c) { beforeSubmit: function(a, b, c) {
var match = checkPasswordMatch(); var match = checkPasswordMatch();
if(!match){ if(!match){
@ -32,42 +32,42 @@
} }
return match; return match;
}, },
success: function() { success: function() {
window.location.href = "/api/v1/restricted"; window.location.href = "/api/v1/restricted";
}, },
error: function() { error: function() {
$('#invalidCredentials').show(); $('#invalidCredentials').show();
} }
}); });
}); });
</script> </script>
</head> </head>
<body> <body>
<div class="container" id="head"> <div class="container" id="head">
Budgeteer Budgeteer
</div> </div>
<div class="container col-lg-12" id="content"> <div class="container col-lg-12" id="content">
<form id="loginForm" action="/api/v1/login" method="POST" class="center-block"> <form id="loginForm" action="/api/v1/login" method="POST" class="center-block">
<label for="email">E-Mail</label> <label for="email">E-Mail</label>
<input type="text" name="email" /><br /> <input type="text" name="email" /><br />
<label for="name">Name</label> <label for="name">Name</label>
<input type="text" name="name" /><br /> <input type="text" name="name" /><br />
<label for="password">Password</label> <label for="password">Password</label>
<input type="password" name="password" id="password" /><br /> <input type="password" name="password" id="password" /><br />
<label for="password">Verify Password</label> <label for="password">Verify Password</label>
<input type="password" id="password_confirm" /> <input type="password" id="password_confirm" />
<span id="divCheckPasswordMatch"></span><br /> <span id="divCheckPasswordMatch"></span><br />
<div id="invalidCredentials"> <div id="invalidCredentials">
Username already exists Username already exists
</div> </div>
<input type="submit" value="Login" /> <input type="submit" value="Login" />
</form> </form>
</div> </div>
</body> </body>
</html> </html>
{{end}} {{end}}