- add sshkeys to hostingpackage detail view context - implement new osusers.forms.EditSshPublicKeyCommentForm - implement new views ListSshPublicKeys, DeleteSshPublicKey and EditSshPublicKeyComment - add new URL patterns 'list_ssh_keys', 'edit_ssh_key_comment' and 'delete_ssh_key' - link from hosting package detail view to 'list_ssh_keys' when there are SSH keys assigned to the shown hosting package - add new templates osusers/sshpublickey_list.html, osusers/sshpublickey_confirm_delete.html and osusers/sshpublickey_edit_comment - add operating system user output to template osusers/sshpublickey_create.html - add changelog entry
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "osusers/base.html" %}
 | 
						|
{% load i18n crispy_forms_tags %}
 | 
						|
 | 
						|
{% block title %}{{ block.super }} - {% spaceless %}
 | 
						|
{% if user == customer %}
 | 
						|
{% blocktrans %}Delete SSH Public Key for Operating System User {{ osuser }}{% endblocktrans %}
 | 
						|
{% else %}
 | 
						|
{% blocktrans with full_name=customer.get_full_name %}Delete SSH Public Key for Operating System User {{ osuser }} of Customer {{ full_name }}{% endblocktrans %}
 | 
						|
{% endif %}
 | 
						|
{% endspaceless %}{% endblock title %}
 | 
						|
 | 
						|
{% block page_title %}{% spaceless %}
 | 
						|
{% if user == customer %}
 | 
						|
{% blocktrans %}Delete SSH Public Key <small>for Operating System User {{ osuser }}</small>{% endblocktrans %}
 | 
						|
{% else %}
 | 
						|
{% blocktrans with full_name=customer.get_full_name %}Delete SSH Public Key <small>for Operating System User {{ osuser }} of Customer {{ full_name }}</small>{% endblocktrans %}
 | 
						|
{% endif %}
 | 
						|
{% endspaceless %}{% endblock page_title %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
<div class="panel panel-warning">
 | 
						|
  <div class="panel-heading">
 | 
						|
    {% blocktrans with algorithm=key.algorithm %}Do you really want to delete the {{ algorithm }} SSH public key?{% endblocktrans %}
 | 
						|
  </div>
 | 
						|
  <div class="panel-body form">
 | 
						|
    <p >{% blocktrans %}When you confirm the deletion of this key you will no longer be able to use the corresponding private key for authentication.{% endblocktrans %}</p>
 | 
						|
    <pre>{{ key }}</pre>
 | 
						|
    <form action="{% url 'delete_ssh_key' package=hostingpackage.id pk=key.id %}" method="post">
 | 
						|
      {% csrf_token %}
 | 
						|
      <input class="btn btn-warning" type="submit" value="{% trans "Yes, do it!" %}" />
 | 
						|
      <a class="btn btn-default" href="{% url 'list_ssh_keys' package=hostingpackage.id %}" title="{% trans "Cancel and go back to the SSH key list" %}">{% trans "Cancel" %}</a>
 | 
						|
    </form>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
{% endblock content %}
 |