bmc_hub/patch_sag_help.py
Christian ceb560e2f2 feat: Add bottom bar functionality with real-time updates and manual endpoint tests
- Implemented a new bottom bar feature in `bottom-bar.js` that fetches and displays various notifications and statuses in real-time.
- Added functions for handling visibility, state updates, and user interactions within the bottom bar.
- Introduced WebSocket connection for real-time updates and fallback polling mechanism.
- Created a manual testing script `test_manual.py` to validate API endpoints for the manual module.
- Included tests for various paths to ensure expected responses from the server.
2026-04-12 02:27:01 +02:00

11 lines
623 B
Python

with open("app/modules/sag/templates/detail.html", "r") as f:
content = f.read()
target = '<button class="btn btn-sm btn-link text-muted p-0 mb-1" onclick="startTitelEdit()" title="Rediger overskrift"><i class="bi bi-pencil-square"></i></button>'
replacement = target + '\n <button class="btn btn-sm btn-link text-info p-0 mb-1 ms-2" onclick="openManualHelp(\'Sag\')" title="Hjælp til sagsbehandling"><i class="bi bi-question-circle fs-5"></i></button>'
content = content.replace(target, replacement)
with open("app/modules/sag/templates/detail.html", "w") as f:
f.write(content)