1
{% extends "django_openstack/nova/keypairs/base.html" %}
4
{% block title %} - Cloud Computing{% endblock %}
8
<script type="text/javascript" src="/media/dashboard/js/jquery.form.js"></script>
13
<h2 id="page_heading">{% trans "Keys" %}</h2>
14
<p id="page_description">{% trans "Key pairs are ssh credentials which are injected into images when they are launched. Creating a new key pair registers the public key and downloads the private key (a pem file). <em>Protect and use the key as a normal private key.</em>" %}</p>
17
{% include "django_openstack/_messages.html" %}
20
{% include "django_openstack/nova/keypairs/_list.html" %}
23
<div class="dash_block first">
24
<form id="frm_key_create" action="{% url nova_keypairs_add project.projectname %}" method="post">
26
<input id="js" name="js" type="hidden" value="0" />
28
<h3>Create New Keypair</h3>
29
{% include "django_openstack/nova/keypairs/_create_form.html" %}
30
<input id="keypair_create" class="create" type="submit" value="Create" />
35
<div id="dlg_confirm" title="Confirm Termination">
36
<p>{% trans "Are you sure you wish to delete key" %} <span id="spn_delete_key_name"></span>?</p>
42
<script type="text/javascript">
43
$(function() { $('#js').val('1'); });
46
$(function() { window.location = '{% url nova_keypairs_download project.projectname download_key %}'; });
50
$('.form-key-delete').submit(function() {
51
_key_name = $(this).children(':first').val()
52
$('#spn_delete_key_name').text(_key_name);
53
$('#dlg_confirm').dialog('open');
57
$('#dlg_confirm').dialog({
60
'Cancel': function() { $(this).dialog('close'); }
70
var _terminateID = null;
72
function onConfirmOK() {
73
$(this).dialog('close');
74
form = document.getElementById('form_key_delete_' + _key_name);
75
if(form) form.submit();