285 lines
7.7 KiB
HTML
285 lines
7.7 KiB
HTML
{% load i18n %}
|
|
<!DOCTYPE html>
|
|
<html lang="{% get_current_language as LANGUAGE_CODE %}{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_CODE == 'ar' %}rtl{% else %}ltr{% endif %}">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>{% block title %}{% trans "PX360 - Patient Experience Management" %}{% endblock %}</title>
|
|
|
|
<!-- Bootstrap 5 CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Bootstrap Icons -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
|
|
|
<!-- Chart.js -->
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
|
|
|
|
<!-- HTMX for dynamic updates -->
|
|
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
|
|
|
<!-- Select2 for better selects -->
|
|
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
|
|
<link href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css" rel="stylesheet" />
|
|
|
|
<!-- Custom CSS -->
|
|
<style>
|
|
:root {
|
|
--sidebar-width: 260px;
|
|
--topbar-height: 60px;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100vh;
|
|
width: var(--sidebar-width);
|
|
background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
|
|
color: white;
|
|
overflow-y: auto;
|
|
z-index: 1000;
|
|
box-shadow: 2px 0 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.sidebar-brand {
|
|
padding: 1.5rem 1rem;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.sidebar-nav {
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.sidebar-nav .nav-link {
|
|
color: rgba(255,255,255,0.8);
|
|
padding: 0.75rem 1.5rem;
|
|
border-left: 3px solid transparent;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.sidebar-nav .nav-link:hover,
|
|
.sidebar-nav .nav-link.active {
|
|
color: white;
|
|
background: rgba(255,255,255,0.1);
|
|
border-left-color: #fbbf24;
|
|
}
|
|
|
|
.sidebar-nav .nav-link i {
|
|
width: 20px;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.sidebar-nav .badge {
|
|
float: right;
|
|
}
|
|
|
|
/* Topbar */
|
|
.topbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: var(--sidebar-width);
|
|
right: 0;
|
|
height: var(--topbar-height);
|
|
background: white;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
z-index: 999;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Main content */
|
|
.main-content {
|
|
margin-left: var(--sidebar-width);
|
|
margin-top: var(--topbar-height);
|
|
padding: 2rem;
|
|
min-height: calc(100vh - var(--topbar-height));
|
|
}
|
|
|
|
/* Cards */
|
|
.stat-card {
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.stat-card .card-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #6b7280;
|
|
font-size: 0.875rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* Tables */
|
|
.table-card {
|
|
background: white;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.table-card .card-header {
|
|
background: white;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
/* Badges */
|
|
.badge {
|
|
padding: 0.35em 0.65em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Soft Buttons (Velzon-inspired) */
|
|
.btn-soft-primary {
|
|
color: #0d6efd;
|
|
background-color: rgba(13, 110, 253, 0.1);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.btn-soft-primary:hover {
|
|
color: #fff;
|
|
background-color: #0d6efd;
|
|
border-color: #0d6efd;
|
|
}
|
|
|
|
/* Card Enhancements */
|
|
.card {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #495057;
|
|
}
|
|
|
|
.shadow-sm {
|
|
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
|
|
}
|
|
|
|
.border-0 {
|
|
border: 0 !important;
|
|
}
|
|
|
|
.bg-transparent {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
/* Page Title Box */
|
|
.page-title-box {
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.page-title-box h4 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #495057;
|
|
margin: 0;
|
|
}
|
|
|
|
/* SLA Indicators */
|
|
.sla-overdue { color: #dc2626; }
|
|
.sla-due-soon { color: #f59e0b; }
|
|
.sla-on-time { color: #10b981; }
|
|
|
|
/* RTL Support */
|
|
[dir="rtl"] .sidebar {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
|
|
[dir="rtl"] .topbar {
|
|
left: 0;
|
|
right: var(--sidebar-width);
|
|
}
|
|
|
|
[dir="rtl"] .main-content {
|
|
margin-left: 0;
|
|
margin-right: var(--sidebar-width);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.sidebar.show {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.topbar,
|
|
.main-content {
|
|
left: 0;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
{% block extra_css %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<!-- Sidebar -->
|
|
{% include 'layouts/partials/sidebar.html' %}
|
|
|
|
<!-- Topbar -->
|
|
{% include 'layouts/partials/topbar.html' %}
|
|
|
|
<!-- Main Content -->
|
|
<div class="main-content">
|
|
<!-- Breadcrumbs -->
|
|
{% include 'layouts/partials/breadcrumbs.html' %}
|
|
|
|
<!-- Flash Messages -->
|
|
{% include 'layouts/partials/flash_messages.html' %}
|
|
|
|
<!-- Page Content -->
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<!-- jQuery (required for Select2) -->
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
|
|
<!-- Bootstrap 5 JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
<!-- Select2 -->
|
|
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
|
|
|
<!-- Initialize Select2 -->
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('.select2').select2({
|
|
theme: 'bootstrap-5'
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{% block extra_js %}{% endblock %}
|
|
</body>
|
|
</html>
|