Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / hosts-tab / panels / info / html.hbs @ aaccdf92

History | View | Annotate | Download (5.52 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                }}
3
{{!                                                                            }}
4
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
5
{{! not use this file except in compliance with the License. You may obtain    }}
6
{{! a copy of the License at                                                   }}
7
{{!                                                                            }}
8
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
9
{{!                                                                            }}
10
{{! Unless required by applicable law or agreed to in writing, software        }}
11
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
12
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
13
{{! See the License for the specific language governing permissions and        }}
14
{{! limitations under the License.                                             }}
15
{{! -------------------------------------------------------------------------- }}
16

    
17
<div class="row">
18
  <div class="large-6 columns">
19
    <table class="dataTable">
20
      <thead>
21
        <tr>
22
          <th colspan="3">{{tr "Information"}}</th>
23
        </tr>
24
      </thead>
25
      <tbody>
26
        <tr>
27
          <td class="key_td">{{tr "ID"}}</td>
28
          <td class="value_td" colspan="2">{{element.ID}}</td>
29
        </tr>
30
        {{{renameTrHTML}}}
31
        {{{clusterTrHTML}}}
32
        <tr>
33
          <td class="key_td">{{tr "State"}}</td>
34
          <td class="value_td">{{stateStr}}</td>
35
          <td></td>
36
        </tr>
37
        <tr>
38
          <td class="key_td">{{tr "IM MAD"}}</td>
39
          <td class="value_td">{{element.IM_MAD}}</td>
40
          <td></td>
41
        </tr>
42
        <tr>
43
          <td class="key_td">{{tr "VM MAD"}}</td>
44
          <td class="value_td">{{element.VM_MAD}}</td>
45
          <td></td>
46
        </tr>
47
      </tbody>
48
    </table>
49
  </div>
50
  <div class="large-6 columns">
51
    <table class="dataTable">
52
      <thead>
53
        <tr>
54
          <th colspan="3">{{tr "Capacity"}}</th>
55
        </tr>
56
      </thead>
57
      <tbody>
58
        <tr>
59
          <td class="key_td">{{tr "Allocated Memory"}}</td>
60
          <td class="value_td" colspan="2" style="width:50%;">{{{memoryBars.allocated}}}</td>
61
        </tr>
62
        <tr>
63
          <td class="key_td">{{tr "Allocated CPU"}}</td>
64
          <td class="value_td" colspan="2" style="width:50%;">{{{cpuBars.allocated}}}</td>
65
        </tr>
66
        <tr>
67
          <td class="key_td">{{tr "Real Memory"}}</td>
68
          <td class="value_td" colspan="2" style="width:50%;">{{{memoryBars.real}}}</td>
69
        </tr>
70
        <tr>
71
          <td class="key_td">{{tr "Real CPU"}}</td>
72
          <td class="value_td" colspan="2" style="width:50%;">{{{cpuBars.real}}}</td>
73
        </tr>
74
      </tbody>
75
    </table>
76
    {{{datastoresCapacityTableHTML}}}
77
  </div>
78
</div>
79
<div class="row">
80
  <div class="large-12 columns">
81
    <table class="dataTable">
82
      <thead>
83
        <tr>
84
          <th colspan="4">{{tr "Overcommitment"}} 
85
          <span class="right">
86
                <button id="update_reserved_hosts" type="button" class="button small success update_reserved right radius">
87
                  {{tr "Update"}}
88
                </button>
89
              </span>
90
          </th>
91
        </tr>
92
      </thead>
93
      <tbody>
94
        <tr colspan="3">
95
          <td class="key_td">{{tr "CPU"}}</td>
96
          <td><input type="range" name="rangeInput" id="change_bar_cpu_hosts" min="0" value="{{element.HOST_SHARE.MAX_CPU}}" max="{{maxReservedCPU}}">
97
          <label align="center">{{realCPU}}</label></td>
98
          <td><input type="text" id="textInput_reserved_cpu_hosts" value="{{element.HOST_SHARE.MAX_CPU}}" min="0" size="1"></td>
99
        </tr>
100
        <tr colspan="3">
101
          <td class="key_td">{{tr "Memory"}}</td>
102
          <td><input type="range" name="rangeInput" id="change_bar_mem_hosts" value="{{element.HOST_SHARE.MAX_MEM}}" max="{{maxReservedMEM}}">
103
          <label align="center">{{realMEM}}</label></td>
104
          <td><input type="text" id="textInput_reserved_mem_hosts" value="{{virtualMEMInput}}" min="0" size="1"></td>
105
        </tr>
106
      </tbody>
107
    </table>
108
  </div>
109
</div>
110
<div class="row vcenter">
111
  <div class="large-9 columns">{{{templateTableVcenterHTML}}}</div>
112
</div>
113
<div class="row">
114
  <div class="large-9 columns">{{{templateTableHTML}}}</div>
115
</div>
116
<div class="row ec2">
117
  <div class="large-12 columns">
118
    <table class="dataTable">
119
      <thead>
120
        <tr>
121
          <th colspan="3">{{tr "EC2"}}</th>
122
        </tr>
123
      </thead>
124
      <tbody>
125
        <tr>
126
          <div id="host_ec2_div" class="row">
127
            <div class="row">
128
              <div class="large12 columns">
129
                <table class="dataTable">
130
                  <thead>
131
                    <tr>
132
                      <th colspan="3">{{tr "Attributes"}}</th>
133
                    </tr>
134
                  </thead>
135
                  <tbody>
136
                    {{{ec2_tr}}}
137
                  </tbody>
138
                </table>
139
              </div>
140
            </div>
141
            <div class="row ec2">
142
              <div class="large-12 columns" id="capacity">
143
                <fieldset class="ec2_capacity">
144
                  <legend>{{tr "Capacity"}}</legend>
145
                    {{{capacityTableHTML}}}
146
                </fieldset>
147
              </div>
148
            </div>
149
          </div>
150
        </tr>
151
      </tbody>
152
    </table>
153
  </div>
154
</div>