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

« back to all changes in this revision

Viewing changes to src/maasserver/templates/maasserver/node_view.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:
6
6
{% block layout-modifiers %}sidebar{% endblock %}
7
7
 
8
8
{% block sidebar %}
9
 
  {% if can_edit %}
10
 
    <h4>Node details</h4>
11
 
    <a href="{% url 'node-edit' node.system_id %}" class="button secondary">
12
 
      Edit node
 
9
  <h4>Node details</h4>
 
10
    {% if can_edit %}
 
11
      <a href="{% url 'node-edit' node.system_id %}" class="button secondary">
 
12
        Edit node
 
13
      </a>
 
14
    {% endif %}
 
15
    <a href="{% url 'node-preseed-view' node.system_id %}" class="button secondary">
 
16
      View preseed
13
17
    </a>
14
 
  {% endif %}
15
 
  {% if form.action_buttons or can_delete %}
 
18
  {% if form.action_buttons %}
16
19
    <h4>Actions</h4>
17
 
  {% endif %}
18
 
  {% if can_delete %}
19
 
    {% if node.owner %}
20
 
      <a href="#"
21
 
         title="You cannot delete this node because it's in use."
22
 
         class="disabled button">
23
 
        Delete node
24
 
      </a>
25
 
    {% else %}
26
 
      <a href="{% url 'node-delete' node.system_id %}"
27
 
         class="button secondary">
28
 
        Delete node
29
 
      </a>
30
 
    {% endif %}
31
 
  {% endif %}
32
 
  {% if form.action_buttons %}
33
 
    <form id="node_actions" method="post" action=".">
 
20
    <form id="node_actions" method="post" action=".">{% csrf_token %}
34
21
      {% for action in form.action_buttons %}
35
 
        <input class="secondary {% if not forloop.first or can_delete %}space-top{% endif %}"
36
 
               type="submit"
37
 
               name="{{ form.input_name }}"
38
 
               value="{{ action.display }}" />
 
22
        <input
 
23
          class="secondary
 
24
                 {% if action.inhibition %}disabled{% endif %}
 
25
                 {% if not forloop.first %}space-top{% endif %}"
 
26
          type="submit"
 
27
          name="{{ form.input_name }}"
 
28
          value="{{ action.display }}"
 
29
          {% if action.inhibition %}}
 
30
            title="{{ action.inhibition }}"
 
31
            disabled="disabled"
 
32
          {% endif %}
 
33
          />
39
34
      {% endfor %}
40
35
    </form>
41
36
  {% endif %}