Move reload/restart/shutdown into an Acties menu in the top bar
The actions are now on every page in the same place instead of a button row that differed per page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7e07428a81
commit
efc581e0ae
8 files changed
+51
-21
No files matched your search
@@ -1,3 +1,4 @@
|
||||
{% from "_macros.html" import menu_action with context %}
|
||||
<!doctype html>
|
||||
<html lang="nl">
|
||||
<head>
|
||||
@@ -27,6 +28,16 @@
|
||||
<a href="{{ url_for('ui.network') }}" {% if active == 'network' %}aria-current="page"{% endif %}>Netwerk</a>
|
||||
<a href="{{ url_for('ui.logs') }}" {% if active == 'logs' %}aria-current="page"{% endif %}>Logboek</a>
|
||||
<a href="{{ url_for('ui.change_password') }}" {% if active == 'account' %}aria-current="page"{% endif %}>Wachtwoord</a>
|
||||
<details class="nav-menu" data-nav-menu>
|
||||
<summary>Acties <span aria-hidden="true">▾</span></summary>
|
||||
<div class="nav-menu-list">
|
||||
{{ menu_action(url_for('ui.kiosk_reload'), "Pagina herladen") }}
|
||||
{{ menu_action(url_for('ui.kiosk_restart'), "Chromium herstarten", confirm="Chromium wordt afgesloten en opnieuw gestart. Het scherm is enkele seconden zwart.") }}
|
||||
<hr>
|
||||
{{ menu_action(url_for('ui.system_reboot'), "Raspberry Pi herstarten", confirm="De Raspberry Pi herstart. Het scherm en de beheerinterface zijn ongeveer een minuut niet beschikbaar.", danger=True) }}
|
||||
{{ menu_action(url_for('ui.system_poweroff'), "Veilig uitschakelen", confirm="De Raspberry Pi wordt uitgeschakeld. Daarna kan hij alleen weer aan door de stroom los en weer vast te maken.", confirm_title="Raspberry Pi uitschakelen", danger=True) }}
|
||||
</div>
|
||||
</details>
|
||||
<form method="post" action="{{ url_for('ui.logout') }}" class="nav-logout">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button type="submit">Uitloggen</button>
|
||||
|
||||
Reference in new issue
Block a user