2015-02-01 01:55:09 +01:00
|
|
|
{% extends "osusers/base.html" %}
|
|
|
|
{% load i18n crispy_forms_tags %}
|
|
|
|
|
|
|
|
{% block title %}{{ block.super }} - {% spaceless %}
|
2023-04-16 22:11:32 +02:00
|
|
|
{% if user == customer %}
|
|
|
|
{% blocktranslate %}Delete SSH Public Key for Operating System User {{ osuser }}{% endblocktranslate %}
|
|
|
|
{% else %}
|
|
|
|
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
|
|
|
Delete SSH Public Key for Operating System User {{ osuser }} of Customer {{ full_name }}
|
|
|
|
{% endblocktranslate %}
|
|
|
|
{% endif %}
|
2015-02-01 01:55:09 +01:00
|
|
|
{% endspaceless %}{% endblock title %}
|
|
|
|
|
|
|
|
{% block page_title %}{% spaceless %}
|
2023-04-16 22:11:32 +02:00
|
|
|
{% if user == customer %}
|
|
|
|
{% blocktranslate trimmed %}
|
|
|
|
Delete SSH Public Key <small>for Operating System User {{ osuser }}</small>
|
|
|
|
{% endblocktranslate %}
|
|
|
|
{% else %}
|
|
|
|
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
|
|
|
Delete SSH Public Key <small>for Operating System User {{ osuser }} of Customer {{ full_name }}</small>
|
|
|
|
{% endblocktranslate %}
|
|
|
|
{% endif %}
|
2015-02-01 01:55:09 +01:00
|
|
|
{% endspaceless %}{% endblock page_title %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-04-16 22:11:32 +02:00
|
|
|
<div class="panel panel-warning">
|
|
|
|
<div class="panel-heading">
|
|
|
|
{% blocktranslate with algorithm=key.algorithm trimmed %}
|
|
|
|
Do you really want to delete the {{ algorithm }} SSH public key?
|
|
|
|
{% endblocktranslate %}
|
|
|
|
</div>
|
|
|
|
<div class="panel-body form">
|
|
|
|
<p>{% blocktranslate trimmed %}
|
|
|
|
When you confirm the deletion of this key you will no longer be able to use the corresponding private
|
|
|
|
key for authentication.
|
|
|
|
{% endblocktranslate %}</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="{% translate "Yes, do it!" %}"/>
|
2023-04-29 12:35:49 +02:00
|
|
|
<a class="btn btn-secondary" href="{% url 'list_ssh_keys' package=hostingpackage.id %}"
|
2023-04-16 22:11:32 +02:00
|
|
|
title="{% translate "Cancel and go back to the SSH key list" %}">{% translate "Cancel" %}</a>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock content %}
|