64 lines
2.3 KiB
Text
64 lines
2.3 KiB
Text
<%- include('partials/header') %>
|
||
|
||
<div class="auth-wrapper">
|
||
<div class="auth-card">
|
||
<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">
|
||
<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"><%= typeof t === 'function' ? t('login.studentIdLabel') : 'Öğrenci ID' %></label>
|
||
<input
|
||
type="text"
|
||
id="studentId"
|
||
name="studentId"
|
||
class="form-control"
|
||
placeholder="<%= typeof t === 'function' ? t('login.studentIdPlaceholder') : 'Öğrenci ID' %>"
|
||
value="<%= typeof rememberedId !== 'undefined' ? rememberedId : '' %>"
|
||
required
|
||
autofocus
|
||
>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<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="<%= typeof t === 'function' ? t('login.passwordPlaceholder') : 'Parola' %>"
|
||
required
|
||
>
|
||
</div>
|
||
|
||
<div class="form-row-between">
|
||
<label class="checkbox-label">
|
||
<input type="checkbox" name="rememberMe" value="true" checked>
|
||
<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">
|
||
<%= typeof t === 'function' ? t('login.submit') : 'Giriş Yap' %>
|
||
</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
document.getElementById('loginForm').addEventListener('submit', function() {
|
||
var btn = document.getElementById('submitBtn');
|
||
btn.disabled = true;
|
||
btn.textContent = window.BeKulturT ? window.BeKulturT('login.submitting') : 'Giriş yapılıyor...';
|
||
});
|
||
</script>
|
||
|
||
<%- include('partials/footer') %>
|