summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-01-31 10:43:54 +0100
committerJose M. Guisado <jguisado@soleta.eu>2022-01-31 16:02:35 +0100
commited294050f103f04e831cc645bbd6c3973246c608 (patch)
tree01bbca8685b48ce0e0947d486a58b780bd20c017 /ogcp/templates
parenta9e6340517611971bd83e6a470f6867b8905114c (diff)
Group log commands buttons into dropdown
Compacts Commands view with a single "Logs" dropdown button. Dropdown shows current log commands.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/commands.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/ogcp/templates/commands.html b/ogcp/templates/commands.html
index 139e441..ac41354 100644
--- a/ogcp/templates/commands.html
+++ b/ogcp/templates/commands.html
@@ -42,9 +42,16 @@
form="scopesForm" formaction="{{ url_for('action_mode') }}" formmethod="get">
<input class="btn btn-light" type="submit" value="{{ _('Set ogLive') }}"
form="scopesForm" formaction="{{ url_for('action_oglive') }}" formmethod="get">
- <input class="btn btn-light" type="submit" value="{{ _('Log') }}"
- form="scopesForm" formaction="{{ url_for('action_legacy_log') }}" formmethod="get">
- <input class="btn btn-light" type="submit" value="{{ _('Real time log') }}"
- form="scopesForm" formaction="{{ url_for('action_legacy_rt_log') }}" formmethod="get">
+ <div class="dropdown btn">
+ <button class="btn btn-secondary btn-light dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
+ Logs
+ </button>
+ <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
+ <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Log') }}"
+ form="scopesForm" formaction="{{ url_for('action_legacy_log') }}" formmethod="get">
+ <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Real time log') }}"
+ form="scopesForm" formaction="{{ url_for('action_legacy_rt_log') }}" formmethod="get">
+ </div>
+ </div>
{% endblock %}