Move web files to subdir

This commit is contained in:
2021-11-07 22:00:53 +00:00
parent 9bc0f2054e
commit 4658b40bd9
42 changed files with 10 additions and 1 deletions

47
web/login.html Normal file
View File

@ -0,0 +1,47 @@
{{define "login"}}
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
{{template "head"}}
<script>
$(document).ready(function() {
$('#invalidCredentials').hide();
$('#loginForm').ajaxForm({
success: function() {
window.location.href = "/dashboard";
},
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/user/login" method="POST" class="center-block">
<div class="form-group">
<label for="username">User</label>
<input type="text" name="username" class="form-control" placeholder="User" />
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" placeholder="Password" />
<p id="invalidCredentials">
The entered credentials are invalid
</p>
</div>
<input type="submit" value="Login" class="btn btn-default" />
</form>
</div>
</body>
</html>
{{end}}