vm_clones.html.ep 1.68 KB
Newer Older
1
2
3
4
<div class="card-body">
        <div class="row">
            <label><%=l 'These actions affect all the clones on the machine' %></label>
        </div>
5
        <div class="row">
6
7
8
9
10
            <button class="btn btn-primary mr-2" id="start-clones" name="start-clones"
                ng-click="request('start_clones_sequentially',{ 'id_domain': showmachine.id })"
            >
                <%=l 'Start all clones sequentially' %>
            </button>
11
            <button class="btn btn-primary mr-2" id="start-clones" name="start-clones"
12
13
14
15
                ng-click="request('start_clones',{ 'id_domain': showmachine.id })"
            >
                <%=l 'Start all clones' %>
            </button>
16
17
18
            <button class="btn btn-danger" id="shutdown-clones" name="shutdown-clones"
                ng-click="shutdown_clones=1"
            >
19
                <%=l 'Shutdown all clones' %>
20
            </button>
21
        </div>
22
23
24
25
26
27
28
        <div ng-show="shutdown_clones">
                        <b><%=l 'Danger'%></b>!<br/>
                        <b><%=l 'Keep in mind that there may be users using a clone' %>.</b>
                        <%=l 'Are you sure ?'%><br/>
                        <a type="button" class="btn btn-primary text-white"
                            ng-click="shutdown_clones=0"
                        ><%=l 'No' %></a>
29
                        <a type="button" class="btn btn-danger text-white" ng-click="request('shutdown_clones',{ 'id_domain': showmachine.id });shutdown_clones=0"
30
31
                        ><%=l 'Yes, shutwdown all the clones' %></a>
           </div>
32
33
34
35
36

        <div class="row" ng-show="pending_request">
            %= include "/main/pending_request"
        </div>

37
</div>