~ubuntu-branches/ubuntu/raring/maas/raring-updates

« 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: 2012-07-03 17:42:37 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120703174237-p8l0keuuznfg721k
Tags: 0.1+bzr709+dfsg-0ubuntu1
* New Upstream release
* debian/control:
  - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
    libjs-raphael
* debian/maas.install:
  - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
  - Update to install various files from chroot, rather tha manually copy
    them from the source.
* debian/maas.links: symlink celeryconfig.py
* debian/maas.maas-celery.upstart: Add job.
* debian/rules:
  - Install celery upstart job.
  - Do not install jslibs as packages are now used.
  - Drop copying of maas_local_settings_sample.py as source now ships
    a maas_local_settings.py
* debian/patches:
  - 04-maas-http-fix.patch: Drop. Merged upstream.
  - 01-fix-database-settings.patch: Refreshed.
  - 99_enums_js.patch: Added until creation of enum.js / build process
    is fixed.
* debian/maas.postinst: Update bzr version to correctly handle upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
{% block title %}Edit node{% endblock %}
5
5
{% block page-title %}Edit node{% endblock %}
6
6
 
 
7
{% block html_includes %}{% include "maasserver/snippets.html" %}
 
8
{% endblock %}
 
9
 
 
10
{% block head %}
 
11
  <script type="text/javascript">
 
12
  <!--
 
13
  YUI().use(
 
14
    'maas.enums', 'maas.power_parameters',
 
15
    function (Y) {
 
16
    Y.on('load', function() {
 
17
      // Create LinkedContentWidget widget so that the power_parameter field
 
18
      // will be updated each time the value of the power_type field changes.
 
19
      var widget = new Y.maas.power_parameters.LinkedContentWidget({
 
20
          srcNode: '.power_parameters',
 
21
          driverEnum: Y.maas.enums.POWER_TYPE,
 
22
          templatePrefix: '#power-param-form-'
 
23
          });
 
24
      widget.bindTo(Y.one('.power_type').one('select'), 'change');
 
25
      widget.render();
 
26
    });
 
27
  });
 
28
  // -->
 
29
  </script>
 
30
{% endblock %}
 
31
 
7
32
{% block content %}
8
33
  <form action="." method="post" class="block auto-width">
 
34
    {% csrf_token %}
9
35
    <ul>
10
 
    {% for field in form %}
11
 
      {% include "maasserver/form_field.html" %}
12
 
    {% endfor %}
 
36
      {% for field in form %}
 
37
        {% include "maasserver/form_field.html" %}
 
38
      {% endfor %}
 
39
      <li>
 
40
        <label for="id_mac_addresses">MAC addresses</label>
 
41
        {% for macaddress in node.macaddress_set.all %}
 
42
        <p>
 
43
        {{ macaddress }}&nbsp;&nbsp;
 
44
        <a title="Delete mac address"
 
45
           class="icon"
 
46
           href="{% url 'mac-delete' macaddress.node.system_id macaddress.mac_address %}">
 
47
          <img src="/static/img/delete.png" alt="delete"/>
 
48
        </a>
 
49
        </p>
 
50
        {% empty %}
 
51
          No MAC address.
 
52
        {% endfor %}
 
53
      </li>
 
54
      <li>
 
55
        <a class="add-link add-mac-form"
 
56
           href="{% url 'mac-add' node.system_id %}">
 
57
          <img src="/static/img/inline_add.png" alt="+" class="icon"/>
 
58
          Add additional MAC address
 
59
        </a>
 
60
      </li>
13
61
    </ul>
14
62
    <input type="submit" value="Save node" class="right" />
15
63
    <a class="link-button" href="{% url 'node-view' node.system_id %}">Cancel</a>