65 lines
3.3 KiB
HTML
Executable File
65 lines
3.3 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Flask App{% endblock %}</title>
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- Font Awesome for icons -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
|
<!-- Base CSS for common styles -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/base.css') }}">
|
|
<!-- Legacy CSS for backward compatibility (temporarily) -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
<!-- Page-specific CSS -->
|
|
{% block extra_css %}{% endblock %}
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body class="light-mode">
|
|
{% if request.endpoint != 'main.login' %}
|
|
<header>
|
|
<div class="header-content">
|
|
<div class="left-header">
|
|
<img src="{{ url_for('static', filename='scan_me.jpg') }}" alt="Logo" class="logo">
|
|
{% if request.endpoint == 'main.dashboard' %}
|
|
<span class="page-title">Welcome to Dashboard</span>
|
|
{% elif request.endpoint == 'main.settings' %}
|
|
<span class="page-title">Settings</span>
|
|
{% elif request.endpoint == 'main.reports' %}
|
|
<span class="page-title">Reports Module</span>
|
|
{% elif request.endpoint == 'main.quality' %}
|
|
<span class="page-title">Quality Module</span>
|
|
{% elif request.endpoint == 'main.fg_quality' %}
|
|
<span class="page-title">FG Quality Module</span>
|
|
{% elif request.endpoint == 'main.warehouse' %}
|
|
<span class="page-title">Warehouse Module</span>
|
|
{% elif request.endpoint == 'main.scan' %}
|
|
<span class="page-title">Scan Module</span>
|
|
{% endif %}
|
|
</div>
|
|
<div class="right-header">
|
|
<button id="theme-toggle" class="theme-toggle">Change to dark theme</button>
|
|
{% if request.endpoint.startswith('daily_mirror') %}
|
|
<a href="{{ url_for('daily_mirror.daily_mirror_main_route') }}" class="btn btn-info btn-sm ms-2"> <i class="fas fa-home"></i> Daily Mirror Main</a>
|
|
{% endif %}
|
|
<a href="{{ url_for('main.dashboard') }}" class="btn go-to-dashboard-btn ms-2">Go to Dashboard</a>
|
|
{% if 'user' in session %}
|
|
<span class="user-info ms-2">You are logged in as {{ session['user'] }}</span>
|
|
<a href="{{ url_for('main.logout') }}" class="logout-button ms-2">Logout</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{% endif %}
|
|
<div class="main-content">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
{% if request.endpoint != 'main.fg_quality' %}
|
|
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
|
{% endif %}
|
|
|
|
<!-- Bootstrap JavaScript -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html> |