download json only for issued credentials

This commit is contained in:
Cayo Puigdefabregas 2024-02-26 17:26:07 +01:00
parent d590e42114
commit 662688b6e9
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@
</div>
</div>
</div>
{% if object.issued_on %}
{% if object.get_status == 'Issued' %}
<div class="row mt-3">
{% if object.eidas1_did and admin_validated %}
<div class="col text-center">
@ -49,5 +49,8 @@
<a class="btn btn-green-user" href="{% url 'idhub:user_credential_json' object.id %}">{% trans 'View credential in JSON format' %}</a>
</div>
{% endif %}
{% if object.get_status == 'Enabled' %}
<a class="btn btn-green-user" href="{% url 'idhub:user_credentials_request' %}">{% trans 'Request credential' %}</a>
{% endif %}
</div>
{% endblock %}