summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-02 17:26:01 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-03 11:41:09 +0100
commit30b3ef90b194c20183056e554bc1b06c2c271fca (patch)
treef2bb6da6c71845a27199380f1f200a147dffe84d /ogcp/templates/actions
parent3271a4a08da08447a07f694147b3b9c2a422aa96 (diff)
Add clients info to session's confirmation page
Show the number of clients and their IPs.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/session.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html
index 68f0f53..fab5bcf 100644
--- a/ogcp/templates/actions/session.html
+++ b/ogcp/templates/actions/session.html
@@ -3,7 +3,13 @@
{% block content %}
-<h1 class="m-5">{{_('Start session')}}</h1>
+{% set ip_list = form.ips.data.split(' ') %}
+{% set ip_count = ip_list | length %}
+<h1 class="m-5">
+ {{ _('Start %(ip_count)d client(s) session', ip_count=ip_count) }}
+</h1>
+
+{{ macros.cmd_selected_clients(ip_list) }}
{{ wtf.quick_form(form,
action=url_for('action_session'),