Change button to a href

This commit is contained in:
PCoder 2020-02-25 14:40:54 +05:30
parent 5d977f32d3
commit 2cbf146ebc
1 changed files with 2 additions and 4 deletions

View File

@ -81,12 +81,10 @@
</td> </td>
<td> <td>
{% if user_key.private_key %} {% if user_key.private_key %}
<form action="{{ user_key.private_key.url }}"> <a class="btn btn-default" style='color: #717274;' href="{{ user_key.private_key.url }}" download="{{user_key.private_key.name}}">
<button style="color: #717274" type="submit" class="btn btn-default">
<span class="pc-only">{% trans "Download" %}</span> <span class="pc-only">{% trans "Download" %}</span>
<span class="mob-only"><i class="fa fa-download"></i></span> <span class="mob-only"><i class="fa fa-download"></i></span>
</button> </a>
</form>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>