vm_remove.html.ep 3.04 KB
Newer Older
joelalju's avatar
joelalju committed
1

fv3rdugo's avatar
fv3rdugo committed
2
        <div class="panel-body nav--danger">
3
4
5
6
7
8
9
            <div class="panel panel-warning" ng-show="showmachine.has_clones">

                <div class="panel-heading">
                    This virtual machine can't be removed because it
                    has {{showmachine.has_clones}} clones.
                </div>
            </div>
10
11
12
13
14
15
            <div ng-show="!domain_remove_done">
                <a ng-show="showmachine.has_clones>0" type="button" class="btn btn-danger"
                              ng-click="domain_remove_clones=1"
                          >
                          <%=l 'Remove Clones' %>
                </a>
fv3rdugo's avatar
fv3rdugo committed
16
17
18
19
20
                <h2 class="Subhead-heading">
                Danger Zone
                </h2>
                    <span class="text">Once you delete the machine, there is no going back. Please be certain.</span><br>
                    <a type="button" class="btn btn-danger"
21
                              ng-hide="showmachine.has_clones > 0"
Francesc Guasch's avatar
Francesc Guasch committed
22
                              ng-click="domain_remove=1"
fv3rdugo's avatar
fv3rdugo committed
23
24
25
                            >
                            <%=l 'Delete this machine' %>
                    </a>
26
            </div>
27

28
            <div ng-show="domain_remove">
fv3rdugo's avatar
fv3rdugo committed
29
                        <span class="text-danger"><b>Danger</b>.
Francesc Guasch's avatar
Francesc Guasch committed
30
                        This will remove all the contents of the machine
31
32
                        <i><%= $domain->name %></i>.
                        <b>This action can't be undone</b>.
fv3rdugo's avatar
fv3rdugo committed
33
                        Are you sure ? </span><br/>
Francesc Guasch's avatar
Francesc Guasch committed
34
35
36
37
                        <a type="button" class="btn btn-danger"
                            ng-click="domain_remove=0"
                        >No</a>
                        <a type="button" class="btn btn-warning"
38
39
                            ng-click="remove(<%= $domain->id %>);domain_remove=0;domain_remove_done=1;"
                            >Yes, remove {{showmachine.name}}</a>
40
           </div><!-- del domain remove -->
41
42
43
44
45
46
47
48
49
50

            <div ng-show="domain_remove_clones">
                        <b>Danger</b>.
                        This will remove all the {{showmachine.has_clones}} clones of the
                        machine <i><%= $domain->name %></i>.
                        <b>This action can't be undone</b>.
                        Are you sure ? <br/>
                        <a type="button" class="btn btn-danger"
                            ng-click="domain_remove_clones=0"
                        >No</a>
51
<<<<<<< HEAD
52
53
                        <a type="button" class="btn btn-warning"
                            ng-click="remove_clones(<%= $domain->id %>);domain_remove_clones=0;"
54
55
56
=======
                        <a type="button" class="btn btn-warning" ng-click="remove_clones(<%= $domain->id %>);domain_remove_clones=0;" onclick = "location='/'"
>>>>>>> 100e21c... [#452] Add other languages to each language
57
58
59
                            >Yes, remove all the clones</a>
           </div><!-- del domain remove clones-->

60
61
62
           <div ng-show="domain_remove_done">
                Virtual Machine <b>{{showmachine.name}}</b> removed.
           </div>
63
    </div>