116 lines
4.3 KiB
HTML
116 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Email Alerts System{% endblock %}</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
|
<style>
|
|
.sidebar {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
}
|
|
.sidebar .nav-link {
|
|
color: rgba(255,255,255,0.8);
|
|
border-radius: 8px;
|
|
margin: 2px 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.sidebar .nav-link:hover {
|
|
color: white;
|
|
background-color: rgba(255,255,255,0.1);
|
|
}
|
|
.sidebar .nav-link.active {
|
|
background-color: rgba(255,255,255,0.2);
|
|
color: white;
|
|
}
|
|
.main-content {
|
|
background-color: #f8f9fa;
|
|
min-height: 100vh;
|
|
}
|
|
.card {
|
|
border: none;
|
|
border-radius: 15px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border: none;
|
|
border-radius: 8px;
|
|
}
|
|
.btn-primary:hover {
|
|
background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
|
|
}
|
|
.alert {
|
|
border-radius: 10px;
|
|
border: none;
|
|
}
|
|
.table {
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
.form-control, .form-select {
|
|
border-radius: 8px;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
.form-control:focus, .form-select:focus {
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<!-- Sidebar -->
|
|
<div class="col-md-3 col-lg-2 px-0">
|
|
<div class="sidebar p-3">
|
|
<div class="text-center mb-4">
|
|
<h4 class="text-white">
|
|
<i class="fas fa-envelope-open-text me-2"></i>
|
|
Email Alerts
|
|
</h4>
|
|
</div>
|
|
<nav class="nav flex-column">
|
|
<a class="nav-link {% if request.endpoint == 'index' %}active{% endif %}" href="{{ url_for('index') }}">
|
|
<i class="fas fa-tachometer-alt me-2"></i>
|
|
Dashboard
|
|
</a>
|
|
<a class="nav-link {% if request.endpoint == 'settings' %}active{% endif %}" href="{{ url_for('settings') }}">
|
|
<i class="fas fa-cog me-2"></i>
|
|
Settings
|
|
</a>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Main Content -->
|
|
<div class="col-md-9 col-lg-10">
|
|
<div class="main-content p-4">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ 'success' if category == 'success' else 'danger' }} alert-dismissible fade show" role="alert">
|
|
{{ message }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html> |