vm-detail-resources.html 1.93 KB
Newer Older
1 2 3
{% load i18n %}
<form id="vm-details-resources-form" method="POST" action="">
  {% csrf_token %}
4 5
<p class="row">
    <div class="col-sm-3">
6
      <label for="vm-cpu-priority-slider"><i class="icon-trophy"></i> {% trans "CPU priority" %}</label>
7 8
    </div>
    <div class="col-sm-9">
9
      <input name="cpu-priority" type="text" id="vm-cpu-priority-slider" class="vm-slider" value="{{ instance.priority }}" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="{{ instance.priority }}" data-slider-orientation="horizontal" data-slider-handle="square" data-slider-tooltip="hide"/>         
10 11 12 13 14 15
    </div>
</p>


<p class="row">
    <div class="col-sm-3">
16
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "CPU count" %}</label>
17 18
    </div>
    <div class="col-sm-9">
19
      <input name="cpu-count" type="text" id="vm-cpu-count-slider" class="vm-slider" value=" {{ instance.num_cores }}" data-slider-min="0" data-slider-max="8" data-slider-step="1" data-slider-value="{{ instance.num_cores }}" data-slider-orientation="horizontal" data-slider-handle="square" data-slider-tooltip="hide"/>         
20 21 22 23 24 25
    </div>
</p>


<p class="row">
    <div class="col-sm-3">
26
      <label for="ram-slider"><i class="icon-ticket"></i> {% trans "RAM amount" %}</label>
27
    </div>
28
    <div class="col-sm-9"> 
29
      <input name="ram-size" type="text" id="vm-ram-size-slider" class="vm-slider" value="{{ instance.ram_size }}" data-slider-min="128" data-slider-max="4096" data-slider-step="128" data-slider-value="{{ instance.ram_size }}" data-slider-orientation="horizontal" data-slider-handle="square" data-slider-tooltip="hide"/>         MiB  
30
  </div>
31 32
</p>

33 34 35 36 37 38
<p class="row">
  <div class="col-sm-12">
    <button type="submit" class="btn btn-success btn-sm" id="vm-details-resources-save"><i class="icon-save"></i> {% trans "Save resources" %}</button>
  </div>
</p>
</form>
39 40 41 42 43
{% block extra_js %}
  <style>
    label {padding-top: 6px;}
  </style>
{% endblock %}