98 lines
3.4 KiB
HTML
98 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<style>
|
|
.login-logo-container {
|
|
text-align: center;
|
|
margin: 0;
|
|
}
|
|
.login-logo {
|
|
max-width: 180px;
|
|
width: 50%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.auth-wrapper {
|
|
padding: 0 1rem;
|
|
min-height: calc(100vh - 160px);
|
|
justify-content: center;
|
|
gap: 20px;
|
|
}
|
|
.form-container {
|
|
margin-top: -10px;
|
|
top: 0;
|
|
}
|
|
.login-logo-container {
|
|
margin: 0;
|
|
}
|
|
.login-logo {
|
|
width: 35%;
|
|
max-width: 120px;
|
|
margin-bottom: 0;
|
|
}
|
|
.form-container {
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
.auth-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0 2rem;
|
|
gap: 10px;
|
|
}
|
|
.form-container {
|
|
max-width: 400px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
position: static;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-light">
|
|
{% block navbar %}
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-3">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="{{ url_for('dashboard') }}">mgmtatlas.com</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<div class="navbar-nav ms-auto">
|
|
{% if current_user.is_authenticated %}
|
|
{% if current_user.is_system_admin %}
|
|
<a class="nav-link" href="{{ url_for('system_admin') }}">System Admin</a>
|
|
{% endif %}
|
|
{% if current_user.is_company_admin %}
|
|
<a class="nav-link" href="{{ url_for('company_admin') }}">Company Admin</a>
|
|
{% endif %}
|
|
<a class="nav-link" href="{{ url_for('profile') }}">My Profile</a>
|
|
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
{% endblock %}
|
|
<div class="container mt-3">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ category }} alert-dismissible fade show">
|
|
{{ message }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
</div>
|
|
{% block content %}{% endblock %}
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html> |