feat: upgrade to SQLite session & data store with zero-data-loss migration, dark theme, and Turkish i18n
This commit is contained in:
parent
1af973d001
commit
56274f479b
27 changed files with 4222 additions and 1360 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<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>
|
||||
<p class="auth-subtitle"><%= typeof t === 'function' ? t('login.subtitle') : 'E-Kültür öğrenci portalı bilgilerinizle giriş yapınız.' %></p>
|
||||
|
||||
<% if (typeof error !== 'undefined' && error) { %>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
|
|
@ -13,13 +13,13 @@
|
|||
|
||||
<form action="/login" method="POST" class="auth-form" id="loginForm">
|
||||
<div class="form-group">
|
||||
<label for="studentId" class="form-label">Student ID</label>
|
||||
<label for="studentId" class="form-label"><%= typeof t === 'function' ? t('login.studentIdLabel') : 'Öğrenci ID' %></label>
|
||||
<input
|
||||
type="text"
|
||||
id="studentId"
|
||||
name="studentId"
|
||||
class="form-control"
|
||||
placeholder="Student ID"
|
||||
placeholder="<%= typeof t === 'function' ? t('login.studentIdPlaceholder') : 'Öğrenci ID' %>"
|
||||
value="<%= typeof rememberedId !== 'undefined' ? rememberedId : '' %>"
|
||||
required
|
||||
autofocus
|
||||
|
|
@ -27,13 +27,13 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password" class="form-label">Password</label>
|
||||
<label for="password" class="form-label"><%= typeof t === 'function' ? t('login.passwordLabel') : 'Parola' %></label>
|
||||
<input
|
||||
type="password"
|
||||
id="password"
|
||||
name="password"
|
||||
class="form-control"
|
||||
placeholder="Password"
|
||||
placeholder="<%= typeof t === 'function' ? t('login.passwordPlaceholder') : 'Parola' %>"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
|
|
@ -41,13 +41,13 @@
|
|||
<div class="form-row-between">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="rememberMe" value="true" checked>
|
||||
<span>Remember credentials</span>
|
||||
<span><%= typeof t === 'function' ? t('login.rememberMe') : 'Beni hatırla' %></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary btn-block" id="submitBtn">
|
||||
Log In
|
||||
<%= typeof t === 'function' ? t('login.submit') : 'Giriş Yap' %>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
document.getElementById('loginForm').addEventListener('submit', function() {
|
||||
var btn = document.getElementById('submitBtn');
|
||||
btn.disabled = true;
|
||||
btn.textContent = 'Logging in...';
|
||||
btn.textContent = window.BeKulturT ? window.BeKulturT('login.submitting') : 'Giriş yapılıyor...';
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue