60 lines
3.1 KiB
HTML
Executable File
60 lines
3.1 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>
|
|
<!-- 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 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 in ['main.upload_data', 'main.upload_orders', 'main.print_module', 'main.label_templates', 'main.create_template', 'main.print_lost_labels', 'main.view_orders'] %}
|
|
<a href="{{ url_for('main.etichete') }}" class="btn go-to-main-etichete-btn">Main Page Etichete</a>
|
|
{% endif %}
|
|
{% if request.endpoint in ['main.quality', 'main.fg_quality'] %}
|
|
<a href="{{ url_for('main.reports') }}" class="btn go-to-main-reports-btn">Main Page Reports</a>
|
|
{% endif %}
|
|
<a href="{{ url_for('main.dashboard') }}" class="btn go-to-dashboard-btn">Go to Dashboard</a>
|
|
{% if 'user' in session %}
|
|
<span class="user-info">You are logged in as {{ session['user'] }}</span>
|
|
<a href="{{ url_for('main.logout') }}" class="logout-button">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 %}
|
|
</body>
|
|
</html> |