_vm-mass-migrate.html 1.34 KB
Newer Older
1 2 3 4 5 6
{% extends "dashboard/mass-operate.html" %}
{% load i18n %}
{% load sizefieldtags %}


{% block formfields %}
7
  <hr />
8
  <ul id="vm-migrate-node-list" class="list-unstyled">
9 10 11 12 13 14 15
    <li class="panel panel-default panel-primary mass-migrate-node">
      <div class="panel-body">
        <label for="migrate-to-none">
          <strong>{% trans "Reschedule" %}</strong>
        </label>
        <input id="migrate-to-none" type="radio" name="node" value="" style="float: right;" checked="checked">
        <span class="vm-migrate-node-property">
16
          {% trans "This option will reschedule each virtual machine to the optimal node." %}
17 18 19 20
        </span>
        <div style="clear: both;"></div>
      </div>
    </li>
21
    {% for n in nodes %}
22
    <li class="panel panel-default mass-migrate-node">
23
      <div class="panel-body">
24 25 26
        <label for="migrate-to-{{n.pk}}">
          <strong>{{ n }}</strong>
        </label>
27
        <input id="migrate-to-{{n.pk}}" type="radio" name="node" value="{{ n.pk }}" style="float: right;"/>
28 29 30
        <span class="vm-migrate-node-property">{% trans "CPU load" %}: {{ n.cpu_usage }}</span>
        <span class="vm-migrate-node-property">{% trans "RAM usage" %}: {{ n.byte_ram_usage|filesize }}/{{ n.ram_size|filesize }}</span>
        <div style="clear: both;"></div>
31 32
      </div>
    </li>
33 34 35 36
    {% endfor %}
  </ul>
  <hr />
{% endblock %}