trilium/src/views/login.ejs

48 lines
1.5 KiB
Text
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
2018-12-23 17:57:40 +08:00
<head>
<meta charset="utf-8">
<title>Login</title>
2018-12-23 17:57:40 +08:00
</head>
<body>
<div style="width: 400px; margin: auto; padding-top: 30px;">
<h1>Trilium login</h1>
2018-12-23 17:57:40 +08:00
<% if (failedAuth) { %>
<div class="alert alert-warning">
Username and / or password are incorrect. Please try again.
</div>
<% } %>
2018-12-23 17:57:40 +08:00
<form action="login" method="POST">
<div class="form-group">
2018-12-23 17:57:40 +08:00
<label for="username">Username</label>
<div class="controls">
<input id="username" name="username" placeholder="" class="form-control" type="text">
</div>
</div>
<div class="form-group">
2018-12-23 17:57:40 +08:00
<label for="password">Password</label>
<div class="controls">
<input id="password" name="password" placeholder="" class="form-control" type="password">
</div>
</div>
<div class="form-group">
2018-12-23 17:57:40 +08:00
<div class="checkbox">
<label>
<input id="remember-me" name="remember_me" value="1" type="checkbox"> Remember me
</label>
</div>
</div>
<div class="form-group">
2018-12-23 17:57:40 +08:00
<button class="btn btn-success">Login</button>
</div>
2018-12-23 17:57:40 +08:00
</form>
</div>
2017-10-21 11:43:20 +08:00
2018-12-23 17:57:40 +08:00
<!-- Required for correct loading of scripts in Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
2017-10-21 11:43:20 +08:00
2018-12-23 17:57:40 +08:00
<link href="/libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet">
</body>
</html>