65 lines
1.8 KiB
Text
65 lines
1.8 KiB
Text
<%- include('partials/header') %>
|
|
|
|
<div class="auth-wrapper">
|
|
<div class="auth-card">
|
|
<h1 class="auth-title">BeKultur</h1>
|
|
<p class="auth-subtitle">Log in with your school portal credentials.</p>
|
|
|
|
<% if (typeof error !== 'undefined' && error) { %>
|
|
<div class="alert alert-danger" role="alert">
|
|
<span class="alert-text"><%= error %></span>
|
|
</div>
|
|
<% } %>
|
|
|
|
<form action="/login" method="POST" class="auth-form" id="loginForm">
|
|
<div class="form-group">
|
|
<label for="studentId" class="form-label">Student ID</label>
|
|
<input
|
|
type="text"
|
|
id="studentId"
|
|
name="studentId"
|
|
class="form-control"
|
|
placeholder="Student ID"
|
|
value="<%= typeof rememberedId !== 'undefined' ? rememberedId : '' %>"
|
|
required
|
|
autofocus
|
|
>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password" class="form-label">Password</label>
|
|
<input
|
|
type="password"
|
|
id="password"
|
|
name="password"
|
|
class="form-control"
|
|
placeholder="Password"
|
|
required
|
|
>
|
|
</div>
|
|
|
|
<div class="form-row-between">
|
|
<label class="checkbox-label">
|
|
<input type="checkbox" name="rememberMe" value="true" checked>
|
|
<span>Remember credentials</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-primary btn-block" id="submitBtn">
|
|
Log In
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
document.getElementById('loginForm').addEventListener('submit', function() {
|
|
var btn = document.getElementById('submitBtn');
|
|
btn.disabled = true;
|
|
btn.textContent = 'Logging in...';
|
|
});
|
|
</script>
|
|
|
|
<%- include('partials/footer') %>
|