settings_machine_tabs_body.html.ep 2.05 KB
Newer Older
Francesc Guasch's avatar
Francesc Guasch committed
1
2
3
4
5
6
7
8
9
10
11
12
%   if (scalar @$errors) {
        <div class="panel panel-danger">
            <div class="panel-heading">
                <ul>
%                   for (@$errors) {
                        <li><%= $_ %></li>
%                   }
                </ul>
            </div>
        </div>
%   }

13
% if ($USER->can_change_settings($domain->id)) {
14
15
16
17
18
<div class="tab-pane fade in active" id="description">
    %= include 'main/vm_description'
</div>

<div class="tab-pane fade" id="rename">
19
20
21
  % if ($domain->is_base) {
    %= include 'main/vm_locked_is_base'
  % } else {
22
    %= include 'main/vm_rename'
23
  % }
24
25
</div>

26
    <div class="tab-pane fade" id="options">
27
28
29
        %= include 'main/vm_options'
    </div>
% }
30
% if ($USER->can_change_settings($domain->id) && $domain->drivers) {
31
    <div class="tab-pane fade" id="drivers">
32
33
34
      % if ($domain->is_base) {
        %= include 'main/vm_locked_is_base'
      % } else {
35
        %= include 'main/vm_drivers'
36
      % }
37
38
    </div>
% }
39
% if ($USER->can_change_settings($domain->id) && !$domain->is_base ) {
40
41
42
43
    <div class="tab-pane fade" id="screenshot">
      %= include 'main/vm_screenshot'
    </div>
% }
44
% if ($domain->type eq 'KVM') {
45
    <div class="tab-pane fade" id="graphics">
46
47
48
      % if ($domain->is_base) {
        %= include 'main/vm_locked_is_base'
      % } else {
49
        %= include 'main/vm_graphics'
50
      % }
51
52
    </div>
% }
Francesc Guasch's avatar
Francesc Guasch committed
53
% if ($USER->can_change_settings($domain->id)) {
54
55
56
57
58
59
60
61
    <div class="tab-pane fade" id="hardware">
      % if ($domain->is_base) {
        %= include 'main/vm_locked_is_base'
      % } else {
        %= include 'main/vm_hardware'
      % }
    </div>
% }
62
63
64
<div class="tab-pane fade" id="snapshots">
  %= include 'main/vm_snapshots'
</div>
65
66
67
68
<div class="tab-pane fade" id="copy">
    %= include 'main/vm_copy'
</div>

69
% if ( $USER->can_remove_machine($domain->id)) {
70
71
72
73
    <div class="tab-pane fade" id="remove" >
        %= include 'main/vm_remove'
    </div>
% }
74
% if ( $monitoring && $USER->is_admin && $domain->is_active ) {
fv3rdugo's avatar
fv3rdugo committed
75
76
77
78
    <div class="tab-pane fade" id="monitoring">
        %= include 'main/vm_monitoring'
    </div>
% }