Ticket #6003 - Select All Checkbox on Orphan and Missing Page:
[ganeti_webmgr.git] / ganeti / templates / importing / nodes / missing.html
blobc8dd2cc72f4305a08f88f70494e70b830d6f8134
1 {% extends "menu_base.html" %}
2 {% load i18n %}
3 {% block head %}
4 <script type="text/javascript" src="{{MEDIA_URL}}/js/jquery.multi_checkbox_selector.js"></script>
5 <script type="text/javascript" src="{{MEDIA_URL}}/js/jquery.tablesorter.min.js"></script>
6 <script type="text/javascript">
7 $(document).ready(function() {
8 $("#missing_form").select_all();
9 $("#node_list").tablesorter({
10 headers: {
11 0: { sorter: 'false' },
13 });
14 });
15 </script>
16 {% endblock %}
17 {% block title %}{% trans "Orphan VMs" %}{% endblock %}
19 {% block content %}
20 <h1><span class="breadcrumb">{% trans "Admin" %}</span> : {% trans "Missing Nodes" %}</h1>
22 <p class="info">
23 Missing nodes are those that exist in the database, but there
24 is no record of them in ganeti. This may happen if you have manually
25 deleted or renamed a node using ganeti command line tools.
26 </p>
28 <form id="missing_form" action="{% url import-nodes-missing %}" method="post">
29 {{form.errors}}
30 <input type="submit" value="{% trans "Delete Selected" %}" {%if not nodes%}disabled{%endif%}>
31 <table id="node_list" class="sorted">
32 <thead>
33 <tr>
34 <th></th>
35 <th>{% trans "Cluster" %}</th>
36 <th>{% trans "Hostname" %}</th>
37 </tr>
38 </thead>
39 <tbody id="nodes">
40 {% for node in nodes %}
41 <tr><td><input type="checkbox" name="nodes" value="{{node.0}}" /></td><td>{{node.1}}</td><td>{{node.2}}</td></tr>
42 {% empty %}
43 <tr><td colspan="3">{% trans "All nodes are synchronized" %}.</td></tr>
44 {% endfor %}
45 </tbody>
46 </table>
47 </form>
48 {% endblock %}