Select Git revision
login.ejs 1.16 KiB
<%- include('./partials/header', {title: 'Login'}) %>
<div class="container shadow p-5 mb-5 bg-white rounded">
<h2 class="page-title mb-4">Greate note</h2>
<% if (typeof error !== 'undefined' && error) { %>
<div class="alert alert-danger" role="alert">
<%= error %>
</div>
<% } %>
<% if (typeof success !== 'undefined' && success) { %>
<div class="alert alert-success" role="alert">
<%= success %>
</div>
<% } %>
<form method="POST" action="/login">
<div class="form-group">
<label for="email">Email address</label>
<input type="email" name="email" class="form-control" placeholder="Enter email" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" placeholder="Password" required>
</div>
<button type="submit" class="btn btn-primary btn-block">Login</button>
</form>
<p class="mt-3 text-center">Don't have an account? <a href="/register">Register here</a></p>
</div>
<%- include('./partials/footer') %>