~smoser/ubuntu/trusty/maas/lp-1172566

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-04-03 13:45:02 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20140403134502-8a6wvuqwyuekufh0
Tags: upstream-1.5+bzr2227
Import upstream version 1.5+bzr2227

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "maasserver/base.html" %}
 
2
 
 
3
{% block nav-active-cluster-list %}active{% endblock %}
 
4
{% block title %}{{ status_name }} clusters{% endblock %}
 
5
{% block page-title %}{{ current_count }}{% if input_query %} matching{% endif %} {{ status_name|lower }} cluster{{ current_count|pluralize }} in {% include "maasserver/site_title.html" %}{% endblock %}
 
6
{% block site-switcher %}{% endblock %}
 
7
{% block header-search %}{% endblock %}
 
8
 
 
9
{% block content %}
 
10
<div id="clusters" style="position: relative;">
 
11
 
 
12
<h2 id="clusters">{{ title }}</h2>
 
13
<table class="list" id="clusters-list">
 
14
  {% include "maasserver/cluster_listing_head.html" %}
 
15
  <tbody>
 
16
    {% for cluster in cluster_list %}
 
17
      {% cycle 'even' 'odd' as cycle silent %}
 
18
      {% include "maasserver/cluster_listing_row.html" with cycle=cycle warning_no_images=warn_no_images %}
 
19
    {% endfor %}
 
20
  </tbody>
 
21
</table>
 
22
{% include "maasserver/pagination.html" %}
 
23
<div>
 
24
  {% if status == statuses.ACCEPTED %}
 
25
    <form method="POST"
 
26
          action="{% url 'cluster-list' %}">
 
27
      {% csrf_token %}
 
28
      <input type="hidden" name="import_all_boot_images" value="1" />
 
29
      <input type="submit" class="button right" value="Import boot images" />
 
30
    </form>
 
31
  {% endif %}
 
32
  {% if status == statuses.PENDING %}
 
33
    <form id="reject_all_pending_nodegroups"
 
34
          method="POST"
 
35
          action="{% url 'cluster-list' %}">
 
36
      {% csrf_token %}
 
37
      <input type="hidden" name="mass_accept_submit" value="1" />
 
38
      <input type="submit" class="button right" value="Accept all" />
 
39
    </form>
 
40
    <form id="accept_all_pending_nodegroups"
 
41
          method="POST"
 
42
          action="{% url 'cluster-list' %}">
 
43
      {% csrf_token %}
 
44
      <input type="hidden" name="mass_reject_submit" value="1" />
 
45
      <input type="submit" class="button right space-right-small"
 
46
             value="Reject all" />
 
47
    </form>
 
48
  {% endif %}
 
49
 
 
50
</div>
 
51
<div class="clear"></div>
 
52
 
 
53
 
 
54
{% endblock %}
 
 
b'\\ No newline at end of file'