From e07c8afcce3f16739bbf9e8c52405f327f367977 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 15 Dec 2021 11:28:16 +0100 Subject: Add set ogLive to commands This action is related to /oglive in ogServer's API. Allows changing the ogLive for a set of given clients, previously selected in the /commands view. --- ogcp/templates/actions/oglive.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ogcp/templates/actions/oglive.html (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html new file mode 100644 index 0000000..f35b371 --- /dev/null +++ b/ogcp/templates/actions/oglive.html @@ -0,0 +1,22 @@ +{% extends 'commands.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +{% set ip_list = form.ips.data.split(' ') %} +{% set ip_count = ip_list | length %} +

Changing ogLive of {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}

+ + + +{{ wtf.quick_form(form, + action=url_for('action_oglive'), + method='post', + button_map={'ok': 'primary'}, + extra_classes="m-5") }} + +{% endblock %} -- cgit v1.2.3-18-g5258