- Added daily_mirror module to permissions system - Fixed user module management - updates now work correctly - Implemented dashboard module filtering based on user permissions - Fixed warehouse create_locations page (config parser and delete) - Implemented POST-Redirect-GET pattern to prevent duplicate entries - Added application license system with validation middleware - Cleaned up debug logging code - Improved user module selection with fetch API instead of form submit
66 lines
2.4 KiB
HTML
Executable File
66 lines
2.4 KiB
HTML
Executable File
{% extends "base.html" %}
|
|
|
|
{% block title %}Dashboard{% endblock %}
|
|
|
|
{% block content %}
|
|
<!-- Floating Help Button -->
|
|
<div class="floating-help-btn">
|
|
<a href="{{ url_for('main.help', page='dashboard') }}" target="_blank" title="Dashboard Help">
|
|
📖
|
|
</a>
|
|
</div>
|
|
|
|
<div class="dashboard-container">
|
|
<!-- Row of evenly distributed cards -->
|
|
{% if 'quality' in user_modules %}
|
|
<div class="dashboard-card">
|
|
<h3>Quality Module</h3>
|
|
<p>Final scanning module for production orders and quality reports access.</p>
|
|
<div style="display: flex; gap: 10px; flex-wrap: wrap;">
|
|
<a href="{{ url_for('main.main_scan') }}" class="btn">Launch Scanning Module</a>
|
|
<a href="{{ url_for('main.reports') }}" class="btn">Access to Quality reports</a>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if 'warehouse' in user_modules %}
|
|
<div class="dashboard-card">
|
|
<h3>Access Warehouse Module</h3>
|
|
<p>Access warehouse module functionalities.</p>
|
|
<a href="{{ url_for('main.warehouse') }}" class="btn" id="launch-warehouse">Open Warehouse</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if 'labels' in user_modules %}
|
|
<!-- New Card: Access Labels Module -->
|
|
<div class="dashboard-card">
|
|
<h3>Access Labels Module</h3>
|
|
<p>Module for label management.</p>
|
|
<a href="{{ url_for('main.etichete') }}" class="btn">Launch Labels Module</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if user_role in ['superadmin', 'admin'] %}
|
|
<div class="dashboard-card">
|
|
<h3>Manage Settings</h3>
|
|
<p>Access and manage application settings.</p>
|
|
<a href="{{ url_for('main.settings') }}" class="btn">Access Settings Page</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if 'daily_mirror' in user_modules %}
|
|
<div class="dashboard-card">
|
|
<h3>📊 Daily Mirror</h3>
|
|
<p>Business Intelligence and Production Reporting - Generate comprehensive daily reports including order quantities, production status, and delivery tracking.</p>
|
|
<div style="display: flex; gap: 10px; flex-wrap: wrap;">
|
|
<a href="{{ url_for('daily_mirror.daily_mirror_main_route') }}" class="btn">📊 Daily Mirror Hub</a>
|
|
</div>
|
|
<div style="margin-top: 8px; font-size: 12px; color: #666;">
|
|
<strong>Tracks:</strong> Orders quantity • Production launched • Production finished • Orders delivered
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %} |