blob: 56865fbc8a3c8f714d9b09d3371fb78b289d315b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{% extends 'commands.html' %}
{% import "bootstrap/wtf.html" as wtf %}
{% set sidebar_state = 'disabled' %}
{% set btn_back = true %}
{% block nav_client %} active{% endblock %}
{% block nav_client_session %} active{% endblock %}
{% block content %}
{% 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(selected_clients) }}
<p>
{% if os_groups|length > 1 %}
The selected clients have different installed OS:
{% endif %}
</p>
<form class="form-inline" method="POST" id="sessionForm">
<table class="table table-hover">
<thead class="thead-light">
<tr>
<th>{{ _('Operating System') }}</th>
<th>{{ _('Clients') }}</th>
</tr>
</thead>
<tbody data-target="partitons-fieldset" id="partitionsTable" class="text-left">
{{ form.hidden_tag() }}
{% for os_choice in form.os %}
<tr data-toggle="fieldset-entry">
<td class="radio-container">
{{ os_choice(class_="form-control") }}
<b>{{ os_choice.label.text }}</b>
</td>
<td>{{ ', '.join(os_groups[os_choice.data]) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<button class="btn btn-success" form="sessionForm">
{{ _('Boot') }}
</button>
</form>
{% endblock %}
|