1 {% extends
"menu_base.html" %}
3 {% block title %}{% trans
"Import VMs" %}{% endblock %}
5 <link rel=
"stylesheet" type=
"text/css" href=
"{{SITE_ROOT}}/object_permissions_media/css/form.css"/>
6 <script type=
"text/javascript" src=
"{{STATIC_URL}}/js/jquery.multi_checkbox_selector.js"></script>
7 <script type=
"text/javascript" src=
"{{STATIC_URL}}/js/jquery.tablesorter.min.js"></script>
8 <script type=
"text/javascript" src=
"{{SITE_ROOT}}/object_permissions_media/js/autocomplete_user_search.js"></script>
9 <script type=
"text/javascript">
10 $(document
).ready(function() {
11 $("#missing_form").select_all();
12 $("#orphanlist").tablesorter({
14 0: { sorter
: 'false' },
17 autocomplete_user_search($("#id_owner"),'{% url owner-search %}');
22 <h1 class=
"breadcrumb"><span>{% trans
"Admin" %}
</span> : {% trans
"Import Virtual Machines" %}
</h1>
25 {% trans
"If you manually create virtual machines they will exist only in the ganeti cluster, and must be manually imported into Ganeti Web Manager's database." %}.
28 <form id=
"missing_form" action=
"{% url import-missing_db %}" method=
"post">{% csrf_token %}
30 <div class=
"owner">{{form.owner.label}}: {{form.owner}}
</div>
31 <input type=
"submit" value=
"{% trans "Import Selected
" %}" {%if not vms%}disabled{%endif%}
>
32 <table id=
"orphanlist" class=
"sorted">
36 <th>{% trans
"Cluster" %}
</th>
37 <th>{% trans
"Hostname" %}
</th>
42 <tr><td><input type=
"checkbox" name=
"virtual_machines" value=
"{{vm.0}}" /></td><td>{{vm
.1}}
</td><td>{{vm
.2}}
</td></tr>
44 <tr><td colspan=
"3">{% trans
"All virtual machines are synchronized" %}.
</td></tr>