- 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.
11 lines
565 B
Python
11 lines
565 B
Python
with open("app/modules/hardware/templates/detail.html", "r") as f:
|
|
content = f.read()
|
|
|
|
target = ' <a href="/hardware/{{ hardware.id }}/edit" class="btn btn-sm btn-outline-primary" style="opacity: 0.8;">'
|
|
replacement = ' <button onclick="openManualHelp(\'Hardware\')" class="btn btn-sm btn-outline-info" title="Hjælp til Hardware"><i class="bi bi-question-lg"></i></button>\n' + target
|
|
|
|
content = content.replace(target, replacement)
|
|
|
|
with open("app/modules/hardware/templates/detail.html", "w") as f:
|
|
f.write(content)
|