update code of dash and report of cont_client and devlp abstract of qty
This commit is contained in:
@@ -8,75 +8,199 @@
|
||||
|
||||
<!-- 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">
|
||||
|
||||
<div class="container-fluid vh-100">
|
||||
<div class="row h-100 justify-content-center align-items-center">
|
||||
<!-- Flash Messages -->
|
||||
<div class="position-fixed top-0 end-0 p-3"
|
||||
style="z-index:1080; width:min(95vw,420px);">
|
||||
|
||||
<!-- Increased column width -->
|
||||
<div class="col-12 col-sm-10 col-md-8 col-lg-5 col-xl-4">
|
||||
{% 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">
|
||||
<!-- Increased padding -->
|
||||
<div class="card-body p-5">
|
||||
|
||||
<!-- Branding -->
|
||||
<div class="text-center mb-4">
|
||||
<img src="{{ url_for('static', filename='images/lcepl.png') }}" alt="LCEPL Logo"
|
||||
class="img-fluid mb-3" style="max-height:80px;">
|
||||
<img src="{{ url_for('static', filename='images/lcepl.png') }}"
|
||||
class="img-fluid mb-3"
|
||||
style="max-height:100px;">
|
||||
|
||||
<h4 class="fw-bold mb-1">
|
||||
Laxmi Civil Engineering Services Pvt Ltd
|
||||
</h4>
|
||||
<p class="text-muted mb-0">
|
||||
Data Comparison Software Solapur(UGD)
|
||||
</p>
|
||||
<h3 class="fw-bold text-success">Laxmi Civil Engineering Services Pvt Ltd</h3>
|
||||
<p class="text-muted">Data Comparison Software (UGD)</p>
|
||||
</div>
|
||||
|
||||
<!-- Flash messages -->
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
{% for category, message in messages %}
|
||||
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
|
||||
{{ message }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<!-- Login Form -->
|
||||
<form method="POST">
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label fw-semibold">User Name</label>
|
||||
<input type="email" name="email" class="form-control " placeholder="Enter email"
|
||||
required>
|
||||
</div>
|
||||
<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="email"
|
||||
name="email"
|
||||
class="form-control"
|
||||
placeholder="Enter Email"
|
||||
required>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label class="form-label fw-semibold">Password</label>
|
||||
<input type="password" name="password" class="form-control" placeholder="Enter password"
|
||||
required>
|
||||
|
||||
<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 btn-lg w-100">
|
||||
<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>
|
||||
<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>
|
||||
Reference in New Issue
Block a user