Ticket #3957 (partial) - ganeti_webmgr uses ganeti python namespace:
[ganeti_webmgr.git] / ganeti_web / templates / importing / nodes / import.html
blob9a1d84bee53b8925fc60c91f6fc0690771fa92d9
1 {% extends "menu_base.html" %}
2 {% load i18n %}
3 {% block title %}{% trans "Orphan VMs" %}{% endblock %}
4 {% block head %}
5 <script type="text/javascript" src="{{MEDIA_URL}}/js/jquery.multi_checkbox_selector.js"></script>
6 <script type="text/javascript" src="{{MEDIA_URL}}/js/jquery.tablesorter.min.js"></script>
7 <script type="text/javascript">
8 $(document).ready(function() {
9 $("#import_form").select_all();
10 $("#node_list").tablesorter({
11 headers: {
12 0: { sorter: 'false' },
14 });
15 });
16 </script>
17 {% endblock %}
18 {% block content %}
19 <h1><span class="breadcrumb">{% trans "Admin" %}</span> : {% trans "Import Nodes" %}</h1>
21 <p class="info">
22 {% trans "When you add nodes to ganeti they must be manually imported" %}.
23 </p>
25 <form id="import_form" action="{% url import-nodes-missing_db %}" method="post">
26 {{form.errors}}
27 {{form.owner.label}} {{form.owner}}
28 <input type="submit" value="{% trans "Import Selected" %}" {%if not nodes%}disabled{%endif%}>
29 <table id="node_list" class="sorted">
30 <thead>
31 <tr>
32 <th></th>
33 <th>{% trans "Cluster" %}</th>
34 <th>{% trans "Hostname" %}</th>
35 </tr>
36 </thead>
37 <tbody id="nodes">
38 {% for node in nodes %}
39 <tr><td><input type="checkbox" name="nodes" value="{{node.0}}" /></td><td>{{node.1}}</td><td>{{node.2}}</td></tr>
40 {% empty %}
41 <tr><td colspan="3">{% trans "All nodes are synchronized" %}.</td></tr>
42 {% endfor %}
43 </tbody>
44 </table>
45 </form>
46 {% endblock %}