budgeteer/templates/register.html
2016-12-20 13:34:34 +01:00

50 lines
1.2 KiB
HTML

{{define "register"}}
<!DOCTYPE html>
<html>
<head>
<title>Registration</title>
{{template "head"}}
<script>
$(document).ready(function() {
$('#invalidCredentials').hide();
$('#loginForm').ajaxForm({
success: function() {
window.location.href = "/api/v1/restricted";
},
error: function() {
$('#invalidCredentials').show();
}
});
});
</script>
</head>
<body>
<div class="container" id="head">
Budgeteer
</div>
<div class="container col-lg-12" id="content">
<form id="loginForm" action="/api/v1/login" method="POST" class="center-block">
<label for="email">E-Mail</label>
<input type="text" name="email" /><br />
<label for="name">Name</label>
<input type="text" name="name" /><br />
<label for="password">Password</label>
<input type="password" name="password" /><br />
<label for="password">Verify Password</label>
<input type="password" /><br />
<div id="invalidCredentials">
The entered credentials are invalid
</div>
<input type="submit" value="Login" />
</form>
</div>
</body>
</html>
{{end}}