summaryrefslogtreecommitdiff
path: root/horizon/horizon/dashboards/nova/templates/nova/ports/attach.html
blob: e07871115d8ef75bba0d7d59361dfd96f2188ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
{% extends 'nova/base.html' %}
{%load i18n%}

{% block sidebar %}
  {% with current_sidebar="networks" %}
    {{block.super}}
  {% endwith %}
{% endblock %}

{% block page_header %}
  {# to make searchable false, just remove it from the include statement #}
  {% include "horizon/common/_page_header.html" with title=_("Attach Port") %}
{% endblock page_header %}

{% block headerjs %}
<script type="text/javascript">
  var VIF_OPTIONS = {
    {% for vif in vifs %}
      '{{vif.id}}' : '{{vif.name}}',
    {% endfor %}
  };

  $(document).ready(function() {
    $.each(VIF_OPTIONS, function(val, text) {
        $('select#id_vif_id')
          .append($("<option></option>")
          .attr("value", val)
          .text(text));
    });
  });
</script>
{% endblock headerjs %}

{% block dash_main %}
  <div class="dash_block">
    <div class="left">
      {% include 'nova/ports/_attach.html' with form=attach_form %}
      <h3><a href="{% url horizon:nova:networks:detail network %}"><< {% trans "Return to network detail"%}</a></h3>
    </div>

    <div class="right">
    {% blocktrans %}<p>Select an interface from the list on the left to attach it to this port.</p>
    <p>Only interfaces that are not connected to any existing port are shown</p>
    <p>If you want to reconnect a connected interface, please detach it first</p>{% endblocktrans %}
    </div>
    <div class="clear">&nbsp;</div>
  </div>
{% endblock %}