~ubuntu-branches/ubuntu/precise/maas/precise-proposed

« 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-04-04 14:47:13 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120404144713-nk3xrg5jfa9ahdhh
Tags: 0.1+bzr415+dfsg-0ubuntu1
* debian/control: Update package descriptions; Suggests maas-dhcp for maas
  and add a maas-dhcp binary.
* Add maas-dhcp package to configure a DHCP server.
  - debian/maas-dhcp.config: Add to ask debconf questions about range,
    gateway, and domain.
  - debian/maas-dhcp.postinst: Handle update of config values.
  - debian/maas-dhcp.templates: Debconf questions.
* debian/po: Update for templates.
* Add message telling MAAS URL after installation.
  - debian/maas.templates: Add message.
  - debian/maas.postinst: Display message.
* debian/maas.config: Hide dbconfig-install question.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
      </a>
15
15
    </div>
16
16
  {% endif %}
17
 
  {% if form.transition_buttons or can_delete %}
 
17
  {% if form.action_buttons or can_delete %}
18
18
    <div class="block size3">
19
19
    <h4>Actions</h4>
20
20
    {% if can_delete %}
21
 
      <a href="{% url 'node-delete' node.system_id %}" class="button secondary">
22
 
        Delete node
23
 
      </a>
 
21
      {% if node.owner %}
 
22
        <a href="#"
 
23
           title="You cannot delete this node because it's in use."
 
24
           class="disabled button">
 
25
          Delete node
 
26
        </a>
 
27
      {% else %}
 
28
        <a href="{% url 'node-delete' node.system_id %}"
 
29
           class="button secondary">
 
30
          Delete node
 
31
        </a>
 
32
      {% endif %}
24
33
    {% endif %}
25
 
    {% for transition in form.transition_buttons %}
 
34
    {% for action in form.action_buttons %}
26
35
      {% if forloop.first %}
27
36
        <form id="node_actions" method="post" action=".">
28
37
      {% endif %}
29
38
      <input class="secondary {% if not forloop.first or can_delete %}space-top{% endif %}"
30
39
             type="submit"
31
40
             name="{{ form.input_name }}"
32
 
             value="{{ transition.display }}" />
 
41
             value="{{ action.display }}" />
33
42
      {% if forloop.last %}</form>{% endif %}
34
43
    {% endfor %}
35
44
    </div>
56
65
          {{ node.display_status }}
57
66
      </span>
58
67
    </li>
 
68
    {% if node.error %}
 
69
    <li class="block first">
 
70
      <h4>Error output</h4>
 
71
      <span>
 
72
          {{ node.error }}
 
73
      </span>
 
74
    </li>
 
75
    {% endif %}
 
76
    {% if node.owner %}
 
77
    <li class="block size2 first">
 
78
      <h4>Owner</h4>
 
79
      <span>{{ node.owner }}</span>
 
80
    </li>
 
81
    {% endif %}
59
82
  </ul>
60
83
{% endblock %}
61
84