Revision 9025c199 src/sunstone/public/app/tabs/clusters-tab/panels/info/html.hbs

View differences:

src/sunstone/public/app/tabs/clusters-tab/panels/info/html.hbs
31 31
      {{{renameTrHTML}}}
32 32
    </tbody>
33 33
  </table>
34
  <table class="dataTable">
35
    <thead>
36
      <tr>
37
        <th colspan="3">{{tr "Overcommitment"}}</th>
38
      </tr>
39
    </thead>
40
    <tbody>
41
      <tr>
42
        <td class="key_td">{{tr "Reserved CPU"}}</td>
43
        <td class="value_td" style="width:50%;">{{valOrDefault element.TEMPLATE.RESERVED_CPU "-"}}</td>
44
        <td>
45
          <a class="edit_reserved edit_e" href="#"> <i class="fa fa-pencil-square-o right"/></a>
46
        </td>
47
      </tr>
48
      <tr>
49
        <td class="key_td">{{tr "Reserved Memory"}}</td>
50
        <td class="value_td" style="width:50%;">{{humanizeSize "KB" element.TEMPLATE.RESERVED_MEM}}</td>
51
        <td>
52
          <a class="edit_reserved edit_e" href="#"> <i class="fa fa-pencil-square-o right"/></a>
53
        </td>
54
      </tr>
55
    </tbody>
56
  </table>
57 34
</div>
58 35
</div>
59 36
<div class="row">
37
  <div class="large-12 columns">
38
    <table class="dataTable">
39
      <thead>
40
        <tr>
41
          <th colspan="4">{{tr "Overcommitment"}} 
42
          <span class="right">
43
            <button id="update_reserved" type="button" class="button small success update_reserved right radius">
44
              {{tr "Update"}}
45
            </button>
46
          </span> 
47
          </th>
48
        </tr>
49
      </thead>
50
      <tbody>
51
          <tr colspan="3" class= "overcommit_percent">
52
            <td class="key_td">{{tr "Reserved CPU"}}</td>
53
            <td><input type="range" name="rangeInput" id="change_bar_cpu" min="-100" value="{{percentCPU}}" max="100">
54
            <label align="center">0%</label></td>
55
            <td><input type="text" id="textInput_reserved_cpu" value="{{percentCPU}}" min="-100" max="100" size="1"></td>
56
          </tr>
57
          <tr colspan="3" class= "overcommit_percent">
58
            <td class="key_td">{{tr "Reserved Memory"}}</td>
59
            <td><input type="range" name="rangeInput" id="change_bar_mem" min="-100" value="{{percentMEM}}" max="100">
60
            <label align="center">0%</label></td>
61
            <td><input type="text" id="textInput_reserved_mem" value="{{percentMEM}}" min="-100" max="100" size="1"></td>
62
          </tr>
63
      </tbody>
64
    </table>
65
  </div>
66
</div>
67
<div class="row">
60 68
  <div class="large-9 columns">
61 69
    {{{templateTableHTML}}}
62 70
  </div>

Also available in: Unified diff