node-detail-resources.html 5.08 KB
Newer Older
1 2 3 4
{% load i18n %}
<form id="vm-details-resources-form" method="POST" action="">
  {% csrf_token %}

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
  <dl class="dl-horizontal">
    <dt>Name:</dt><dd>{{ node.name }}</dd>
    <dt>Number of cores:</dt><dd>{{ node.num_cores }}</dd>
    <dt>Memory:</dt> <dd>{% widthratio node.ram_size 1048576 1 %} MB</dd>
    <dt>Architecture:</td><dd>{{ record.arch }}</dd>
    <dt>IPv4 address:</dt><dd>{{ node.host.ipv4 }}</dd>
    <dt>IPv6 address:</dt><dd> {{ node.host.ipv6 }}</dd>
    <dt>Enabled:</dt><dd>{{ node.enabled }}</dd>
    <dt>Host online:</dt><dd> {{ node.online }}</dd>
    <dt>Priority:</dt><dd>{{ node.priority }}</dd>
    <dt>Host owner:</dt><dd>{{ node.host.owner }}</dd>
    <dt>Vlan:</dt><dd>{{ node.host.vlan }}</dd>
    <dt>Hostname:</dt><dd>{{ node.host.hostname }}</dd>
    </dl>

20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Enabled" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.enabled }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Priority" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.priority }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "CPU cores" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.num_cores }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "RAM size" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {% widthratio node.ram_size 1024000 1 %} MB </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Traits" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.traits.all }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Tags" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.tags.all }} </label>
    </div>
</p>


<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Host owner" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.host.owner }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Host IP" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.host.ipv4 }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Shared IP" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.host.shared_ip }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Host vlan" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.host.vlan }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Host name" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.host.groups.all }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Host name" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.host.hostname }} </label>
    </div>
</p>


<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Host name" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.host.hostname }} </label>
    </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "Host online" %}</label>
    </div>
    <div class="col-sm-9">
      <label > {{ node.online }} </label>
    </div>
</p>


<p class="row">
    <div class="col-sm-3">
      <label for="ram-slider"><i class="icon-ticket"></i> {% trans "RAM amount" %}</label>
    </div>
    <div class="col-sm-9"> 
      <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  
  </div>
</p>

<p class="row">
    <div class="col-sm-3">
      <label for="cpu-count-slider"><i class="icon-cogs"></i> {% trans "CPU count" %}</label>
    </div>
    <div class="col-sm-9">
164
      <label > {{ node.host }} </label>
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
    </div>
</p>


<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>
{% block extra_js %}
  <style>
    label {padding-top: 6px;}
  </style>
{% endblock %}