Files
quality_app-v2/app/templates/base.html
Quality App Developer ac24e20fe1 fix: Remove extra '>' character from theme CSS link tag in base.html
This was causing a literal '>' character to appear at the top of all pages.
2026-01-28 01:04:11 +02:00

126 lines
5.6 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 %}{{ app_name }}{% endblock %}</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Base CSS -->
<link rel="stylesheet" href="{{ url_for('static', filename='css/base.css') }}">
<!-- Theme CSS (Light/Dark Mode) -->
<link rel="stylesheet" href="{{ url_for('static', filename='css/theme.css') }}">
{% block extra_css %}{% endblock %}
</head>
<body>
<!-- Navigation Header (hidden on login page) -->
{% if request.endpoint != 'main.login' %}
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<div class="container-fluid">
<a class="navbar-brand" href="{{ url_for('main.dashboard') }}">
<i class="fas fa-chart-bar"></i> {{ app_name }}
</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">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="{{ url_for('main.dashboard') }}">
<i class="fas fa-home"></i> Dashboard
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('quality.quality_index') }}">
<i class="fas fa-check-circle"></i> Quality
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('warehouse.warehouse_index') }}">
<i class="fas fa-warehouse"></i> Warehouse
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('settings.settings_index') }}">
<i class="fas fa-cog"></i> Settings
</a>
</li>
<li class="nav-item">
<button id="themeToggleBtn" class="theme-toggle" type="button" title="Switch to Dark Mode">
<i class="fas fa-moon"></i>
</button>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-bs-toggle="dropdown">
<i class="fas fa-user"></i> {{ session.get('full_name', 'User') }}
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
<li>
<a class="dropdown-item" href="{{ url_for('main.profile') }}">
<i class="fas fa-user-circle"></i> Profile
</a>
</li>
<li><hr class="dropdown-divider"></li>
<li>
<a class="dropdown-item" href="{{ url_for('main.logout') }}">
<i class="fas fa-sign-out-alt"></i> Logout
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
{% endif %}
<!-- Flash Messages -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ 'danger' if category == 'error' else category }} alert-dismissible fade show m-3" role="alert">
{% if category == 'error' %}
<i class="fas fa-exclamation-circle"></i>
{% elif category == 'success' %}
<i class="fas fa-check-circle"></i>
{% elif category == 'warning' %}
<i class="fas fa-exclamation-triangle"></i>
{% else %}
<i class="fas fa-info-circle"></i>
{% endif %}
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
</div>
{% endfor %}
{% endif %}
{% endwith %}
<!-- Main Content -->
<main class="main-content">
{% block content %}{% endblock %}
</main>
<!-- Footer -->
{% if request.endpoint != 'main.login' %}
<footer class="footer mt-5 py-3 bg-light text-center">
<div class="container">
<span class="text-muted">{{ app_name }} &copy; 2026. All rights reserved.</span>
</div>
</footer>
{% endif %}
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<!-- Theme Toggle JS -->
<script src="{{ url_for('static', filename='js/theme.js') }}"></script>
<!-- Base JS -->
<script src="{{ url_for('static', filename='js/base.js') }}"></script>
{% block extra_js %}{% endblock %}
</body>
</html>