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
@@ -2,10 +2,10 @@
|
||||
<span class="badge badge-{{ status }}" {% if field %}data-badge="{{ field }}"{% endif %}><span class="dot" aria-hidden="true"></span><span data-badge-label>{{ label }}</span></span>
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro action(url, label, cls="btn-primary", confirm=None, confirm_title=None, big=False) -%}
|
||||
<form method="post" action="{{ url }}" class="inline-form" {% if confirm %}data-confirm="{{ confirm }}" data-confirm-title="{{ confirm_title or label }}"{% endif %}>
|
||||
{% macro menu_action(url, label, confirm=None, confirm_title=None, danger=False) -%}
|
||||
<form method="post" action="{{ url }}" {% if confirm %}data-confirm="{{ confirm }}" data-confirm-title="{{ confirm_title or label }}"{% endif %}>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button type="submit" class="btn {{ cls }}{% if big %} btn-big{% endif %}">{{ label }}</button>
|
||||
<button type="submit"{% if danger %} class="danger"{% endif %}>{{ label }}</button>
|
||||
</form>
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user