~lutostag/ubuntu/trusty/maas/1.5.2+packagefix

« back to all changes in this revision

Viewing changes to src/maasserver/templates/maasserver/node_edit.html

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-03-28 10:43:53 UTC
  • mto: This revision was merged to the branch mainline in revision 57.
  • Revision ID: package-import@ubuntu.com-20140328104353-ekpolg0pm5xnvq2s
Tags: upstream-1.5+bzr2204
ImportĀ upstreamĀ versionĀ 1.5+bzr2204

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    Y.on('load', function() {
17
17
      // Create LinkedContentWidget widget so that the power_parameter field
18
18
      // will be updated each time the value of the power_type field changes.
 
19
      var power_types = {{ power_types }};
19
20
      var widget = new Y.maas.power_parameters.LinkedContentWidget({
20
21
          srcNode: '.power_parameters',
21
 
          driverEnum: Y.maas.enums.POWER_TYPE,
 
22
          driverEnum: power_types,
22
23
          templatePrefix: '#power-param-form-'
23
24
          });
24
25
      widget.bindTo(Y.one('.power_type').one('select'), 'change');
38
39
        {% include "maasserver/form_field.html" %}
39
40
      {% endfor %}
40
41
      <li>
41
 
        <label for="id_mac_addresses">MAC addresses</label>
 
42
        <label for="id_mac_addresses">Network interfaces</label>
42
43
        {% for macaddress in node.macaddress_set.all %}
43
44
        <p>
44
45
        {{ macaddress }}&nbsp;&nbsp;
45
 
        <a title="Delete mac address"
 
46
        <a title="Delete network interface"
46
47
           class="icon"
47
48
           href="{% url 'mac-delete' macaddress.node.system_id macaddress.mac_address %}">
48
49
          <img src="{{ STATIC_URL }}img/delete.png" alt="delete" />
49
50
        </a>
50
51
        </p>
51
52
        {% empty %}
52
 
          No MAC address.
 
53
          No known network interfaces.
53
54
        {% endfor %}
54
55
      </li>
55
56
      <li>
56
57
        <a class="add-link add-mac-form"
57
58
           href="{% url 'mac-add' node.system_id %}">
58
59
          <img src="{{ STATIC_URL }}img/inline_add.png" alt="+" class="icon" />
59
 
          Add additional MAC address
 
60
          Register additional network interface
60
61
        </a>
61
62
      </li>
62
63
    </ul>