diff --git a/app/modules/labels/routes.py b/app/modules/labels/routes.py index 382e927..09f910b 100644 --- a/app/modules/labels/routes.py +++ b/app/modules/labels/routes.py @@ -44,6 +44,78 @@ def print_lost_labels(): return render_template('modules/labels/print_lost_labels.html') +@labels_bp.route('/help/', methods=['GET']) +def help(page='index'): + """Help page for labels module""" + if 'user_id' not in session: + return redirect(url_for('main.login')) + + # Map page names to help content + help_pages = { + 'print_module': { + 'title': 'Print Module Help', + 'content': ''' +

Print Labels - Thermal Printer Guide

+

This module helps you print labels directly to thermal printers.

+

Features:

+ +

How to use:

+
    +
  1. Select orders from the list
  2. +
  3. Preview labels in the preview pane
  4. +
  5. Select your printer
  6. +
  7. Click "Print Labels" to send to printer
  8. +
+ ''' + }, + 'print_lost_labels': { + 'title': 'Print Lost Labels Help', + 'content': ''' +

Print Lost Labels - Reprint Guide

+

Use this page to search and reprint labels for orders that need reprinting.

+

Features:

+ +

How to use:

+
    +
  1. Enter the production order code
  2. +
  3. Click "Search" to find the order
  4. +
  5. Select the order and preview
  6. +
  7. Click "Reprint Labels" to print again
  8. +
+ ''' + } + } + + help_data = help_pages.get(page, help_pages.get('index', {'title': 'Help', 'content': 'No help available'})) + + return f''' + + + {help_data['title']} + + + + {help_data['content']} + + + ''' + + # ============================================================================ # API Endpoints for Labels Module # ============================================================================ diff --git a/app/templates/modules/labels/print_lost_labels.html b/app/templates/modules/labels/print_lost_labels.html index c52026e..cbf9ea3 100644 --- a/app/templates/modules/labels/print_lost_labels.html +++ b/app/templates/modules/labels/print_lost_labels.html @@ -57,7 +57,7 @@ box-shadow: 0 0 0 3px var(--input-focus-shadow); } - .floating-help-btn { + {# .floating-help-btn { position: fixed; bottom: 20px; right: 20px; @@ -81,7 +81,7 @@ .floating-help-btn a:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); - } + } #} /* Compact table styling for print_lost_labels page */ .print-lost-labels-compact .scan-table.print-module-table { @@ -123,11 +123,11 @@ {% block content %} -
+{# +
#}