From 30b3ef90b194c20183056e554bc1b06c2c271fca Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 2 Mar 2022 17:26:01 +0100 Subject: Add clients info to session's confirmation page Show the number of clients and their IPs. --- ogcp/templates/actions/session.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 %} -

{{_('Start session')}}

+{% set ip_list = form.ips.data.split(' ') %} +{% set ip_count = ip_list | length %} +

+ {{ _('Start %(ip_count)d client(s) session', ip_count=ip_count) }} +

+ +{{ macros.cmd_selected_clients(ip_list) }} {{ wtf.quick_form(form, action=url_for('action_session'), -- cgit v1.2.3-18-g5258