summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/scopes.html
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-03-24 14:32:16 +0100
committerJose M. Guisado <jguisado@soleta.eu>2021-03-24 14:32:16 +0100
commit2ad382b5ed0e927121308f83a51d8f3a89d41e50 (patch)
treeaace4bb10735a98e979780fee395c71b36d38d30 /ogcp/templates/scopes.html
parent9ee0565ac41661a0521630fbfe1ea9e896fcec52 (diff)
Add cosmetic improvements
* Adds label for each action page. * Adds a colored state for opengnsys connected clients * Fix nav active item * Rename some actions * Adds DISK to partition and format form
Diffstat (limited to 'ogcp/templates/scopes.html')
-rw-r--r--ogcp/templates/scopes.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html
index 879f5f0..0adeca4 100644
--- a/ogcp/templates/scopes.html
+++ b/ogcp/templates/scopes.html
@@ -1,10 +1,11 @@
{% extends 'base.html' %}
+{% block nav_scopes %}active{% endblock %}
{% macro print_scopes_tree(scopes) -%}
<ul class="list-group list-group-flush mx-5">
{% for scope in scopes %}
- <li class="list-group-item">
+ <li class="list-group-item state--{{ scope['state'] | lower }}">
<input class="form-check-input" type="checkbox"
value="{{ " ".join(scope["ip"]) }}"
name="{{ scope["name"] }}_{{ scope["id"] }}">
@@ -32,9 +33,9 @@
{{ _('Actions') }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
- <input class="dropdown-item" type="submit" value="{{ _('Run') }}"
+ <input class="dropdown-item" type="submit" value="{{ _('Power on (WoL)') }}"
formaction="{{ url_for('action_wol') }}" formmethod="get">
- <input class="dropdown-item" type="submit" value="{{ _('Poweroff') }}"
+ <input class="dropdown-item" type="submit" value="{{ _('Power off') }}"
formaction="{{ url_for('action_poweroff') }}" formmethod="post">
<input class="dropdown-item" type="submit" value="{{ _('Reboot') }}"
formaction="{{ url_for('action_reboot') }}" formmethod="post">
@@ -44,13 +45,13 @@
formaction="{{ url_for('action_hardware') }}" formmethod="get">
<input class="dropdown-item" type="submit" value="{{ _('Software') }}"
formaction="{{ url_for('action_software') }}" formmethod="get">
- <input class="dropdown-item" type="submit" value="{{ _('Sessions') }}"
+ <input class="dropdown-item" type="submit" value="{{ _('Start session') }}"
formaction="{{ url_for('action_session') }}" formmethod="get">
<input class="dropdown-item" type="submit" value="{{ _('Restore Image') }}"
formaction="{{ url_for('action_image_restore') }}" formmethod="get">
- <input class="dropdown-item" type="submit" value="{{ _('Setup') }}"
+ <input class="dropdown-item" type="submit" value="{{ _('Partition & Format') }}"
formaction="{{ url_for('action_setup_show') }}" formmethod="get">
- <input class="dropdown-item" type="submit" value="{{ _('Details') }}"
+ <input class="dropdown-item" type="submit" value="{{ _('Client details') }}"
formaction="{{ url_for('action_client_info') }}" formmethod="get">
<input class="dropdown-item" type="submit" value="{{ _('Add client') }}"
formaction="{{ url_for('action_client_add') }}" formmethod="get">