207 lines
7.0 KiB
HTML
207 lines
7.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>LCEPL | Login</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">
|
|
|
|
|
|
</head>
|
|
|
|
<body class="bg-light">
|
|
|
|
<!-- Flash Messages -->
|
|
<div class="position-fixed top-0 end-0 p-3"
|
|
style="z-index:1080; width:min(95vw,420px);">
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
|
|
<div class="alert alert-{{ category }} alert-dismissible fade show shadow notification-alert">
|
|
|
|
<strong>
|
|
{% if category=="success" %}
|
|
<i class="bi bi-check-circle-fill me-2"></i>Success
|
|
{% elif category=="danger" %}
|
|
<i class="bi bi-x-circle-fill me-2"></i>Error
|
|
{% elif category=="warning" %}
|
|
<i class="bi bi-exclamation-triangle-fill me-2"></i>Warning
|
|
{% else %}
|
|
<i class="bi bi-info-circle-fill me-2"></i>Information
|
|
{% endif %}
|
|
</strong>
|
|
|
|
<div>{{ message }}</div>
|
|
|
|
<div class="progress mt-2" style="height:4px;">
|
|
<div class="progress-bar progress-bar-striped progress-bar-animated timer-bar"
|
|
style="width:100%"></div>
|
|
</div>
|
|
|
|
<button class="btn-close"
|
|
data-bs-dismiss="alert">
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-center align-items-center min-vh-100">
|
|
<div class="col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5">
|
|
<div class="card shadow-lg border-0">
|
|
<div class="card-body p-5">
|
|
<div class="text-center mb-4">
|
|
<img src="{{ url_for('static', filename='images/lcepl.png') }}"
|
|
class="img-fluid mb-3"
|
|
style="max-height:100px;">
|
|
|
|
<h3 class="fw-bold text-success">Laxmi Civil Engineering Services Pvt Ltd</h3>
|
|
<p class="text-muted">Data Comparison Software (UGD)</p>
|
|
</div>
|
|
|
|
<form method="POST">
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label fw-semibold">Username</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text">
|
|
<i class="bi bi-envelope-fill"></i>
|
|
</span>
|
|
|
|
<input
|
|
type="text"
|
|
name="email"
|
|
class="form-control"
|
|
placeholder="Enter Domain Username"
|
|
autocomplete="username"
|
|
required>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="mb-4">
|
|
<label class="form-label fw-semibold">Password</label>
|
|
|
|
<div class="input-group">
|
|
<span class="input-group-text">
|
|
<i class="bi bi-lock-fill"></i>
|
|
</span>
|
|
|
|
<input
|
|
type="password"
|
|
id="password"
|
|
name="password"
|
|
class="form-control"
|
|
placeholder="Enter Password"
|
|
required>
|
|
|
|
<button
|
|
type="button"
|
|
id="togglePassword"
|
|
class="input-group-text bg-white border-start-0"
|
|
style="cursor:pointer;">
|
|
<i class="bi bi-eye text-secondary"></i>
|
|
</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<button
|
|
class="btn btn-success w-100 btn-lg">
|
|
<i class="bi bi-box-arrow-in-right me-2"></i>
|
|
Login
|
|
</button>
|
|
|
|
<div class="text-center mt-3">
|
|
<a href="#">Forgot Password?</a>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-center mt-3">
|
|
<small class="text-muted">
|
|
© 2026 Laxmi Civil Engineering Services Pvt Ltd
|
|
</small>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
// Password Show / Hide
|
|
const togglePassword = document.getElementById("togglePassword");
|
|
const password = document.getElementById("password");
|
|
|
|
if (togglePassword && password) {
|
|
|
|
togglePassword.addEventListener("click", function () {
|
|
|
|
const type =
|
|
password.getAttribute("type") === "password"
|
|
? "text"
|
|
: "password";
|
|
|
|
password.setAttribute("type", type);
|
|
|
|
this.innerHTML =
|
|
type === "password"
|
|
? '<i class="bi bi-eye"></i>'
|
|
: '<i class="bi bi-eye-slash"></i>';
|
|
});
|
|
}
|
|
|
|
// Auto Close Notification after 5 sec
|
|
document.querySelectorAll(".notification-alert").forEach(function (alert) {
|
|
|
|
const progressBar = alert.querySelector(".timer-bar");
|
|
|
|
let width = 100;
|
|
|
|
const interval = setInterval(function () {
|
|
|
|
width -= 2;
|
|
progressBar.style.width = width + "%";
|
|
|
|
if (width <= 0) {
|
|
|
|
clearInterval(interval);
|
|
|
|
bootstrap.Alert
|
|
.getOrCreateInstance(alert)
|
|
.close();
|
|
}
|
|
|
|
}, 100);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |