2019-09-23 12:06:54 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<h1>{% block title %}Edit "{{ pubkey['fingerprint'] }}"{% endblock %}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<form method="post">
|
|
|
|
<label for="key_name">SSH-Pubkey ({{ pubkey['id'] }}) {{ pubkey['deleted'] }}</label>
|
|
|
|
<input name="key_name" id="key_name"
|
|
|
|
value="{{ request.form['key_name'] or pubkey['key_name'] }}" required>
|
|
|
|
<label for="ssh_pubkey">SSH-Pubkey</label>
|
|
|
|
<textarea name="ssh_pubkey" id="ssh_pubkey" readonly>{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}</textarea>
|
|
|
|
<!--div class="about">{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}<div-->
|
2019-09-23 12:56:32 +02:00
|
|
|
<div>
|
2019-09-23 12:06:54 +02:00
|
|
|
<input type="checkbox" name="deleted" id="deleted" {% if pubkey['deleted'] != 0 %}checked="checked" {% endif %}>
|
|
|
|
<label for="deleted">Key marked as deleted</label>
|
2019-09-23 12:56:32 +02:00
|
|
|
</div>
|
2019-09-23 12:06:54 +02:00
|
|
|
<input type="submit" value="Save">
|
|
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<ul>
|
|
|
|
<li><form action="{{ url_for('pubkeys.delete', id=pubkey['id']) }}" method="post">
|
|
|
|
<input class="danger" type="submit" value="Delete" onclick="return confirm('Are you sure?');">
|
|
|
|
</form>
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|