Added private_key field to UserHostingkey model, some html updates
This commit is contained in:
parent
8986aa6550
commit
d2d96e9951
5 changed files with 45 additions and 10 deletions
|
|
@ -40,9 +40,9 @@
|
|||
|
||||
<td>
|
||||
<button type="button" class="btn btn-default btn-custom-delete" data-toggle="modal"
|
||||
data-target="#Modal{{ user_key.id }}">
|
||||
<a href="#">
|
||||
{% trans "Delete"%}</a>
|
||||
data-target="#Modal{{ user_key.id }}" style="color: #717274">
|
||||
|
||||
{% trans "Delete"%}
|
||||
</button>
|
||||
|
||||
<div class="modal fade" id="Modal{{user_key.id }}" tabindex="-1" role="dialog">
|
||||
|
|
@ -105,10 +105,15 @@
|
|||
</td>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-default" data-toggle="modal"
|
||||
><a
|
||||
href="#">{% trans "Download"%}</a>
|
||||
</button>
|
||||
{% if user_key.private_key %}
|
||||
<form action="{{ user_key.private_key.url }}">
|
||||
<button style="color: #717274" type="submit" class="btn btn-default" data-toggle="modal"
|
||||
>{% trans "Download"%}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% endif %}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue