Commit f530b791 by Dányi Bence

webui: templates for public keys

parent 71c751d7
{% extends "box/base/box.html" %}
{% load i18n %}
{% load l10n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}
{% trans "Public keys" %}
{% endblock title %}
{% block content %}
<ul class="entry-list" id="keys">
{% for key in keys %}
{% include "box/key/entry.html" %}
{% endfor %}
<li class="entry small-row">
<div class="summary" id="new-key">
<div class="name">{% trans "Add public key" %}</div>
<div id="new-key-form">
<input type="text" placeholder="{% trans "Public key in OpenSSH format" %}" />
<input type="submit" value="{% trans "Add key" %}" />
</div>
<div class="clear"></div>
</div>
</li>
</ul>
{% endblock content %}
{% extends "box/base/entry.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
<li class="entry">
{{block.super}}
</li>
{% endblock content %}
{% block summary %}
<div class="summary">
<div class="name">
{{key}}
</div>
<div class="actions">
<a href="#" class="remove" data-id="{{key.id}}">
<img src="/static/icons/minus-circle.png" alt="{% trans 'Remove' %}" />
</a>
</div>
<div class="clear"></div>
</div>
{% endblock summary %}
{% block details %}
<textarea>{{key.key}}</textarea>
{% endblock details %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment