From 5f454f139c4d550acedfee3d01bf4d85c2417ed5 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 11 Mar 2024 12:12:40 +0100 Subject: [PATCH] #175 #176 buttons downlaod json --- .../idhub/admin/issue_credentials.html | 8 +--- idhub/templates/idhub/user/credential.html | 43 ++++++++++--------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/idhub/templates/idhub/admin/issue_credentials.html b/idhub/templates/idhub/admin/issue_credentials.html index 216690e..f046683 100644 --- a/idhub/templates/idhub/admin/issue_credentials.html +++ b/idhub/templates/idhub/admin/issue_credentials.html @@ -11,6 +11,7 @@
{% if object.get_status == 'Issued' %} + {% trans 'Download as JSON' %} {% trans 'Revoke' %} {% endif %} {% if object.get_status == 'Enabled' %} @@ -48,13 +49,6 @@ {{ object.get_status}}
- {% if object.issued_on %} -
- -
- {% endif %} diff --git a/idhub/templates/idhub/user/credential.html b/idhub/templates/idhub/user/credential.html index ac5c14e..9e1e0f4 100644 --- a/idhub/templates/idhub/user/credential.html +++ b/idhub/templates/idhub/user/credential.html @@ -2,10 +2,29 @@ {% load i18n %} {% block content %} -

- - {{ subtitle }} -

+
+
+

+ + {{ subtitle }} +

+
+
+ {% if object.get_status == 'Issued' %} +
+ {% if object.eidas1_did and admin_validated %} + {% trans 'Download as PDF' %} + {% endif %} + {% trans 'Download as JSON' %} +
+ {% endif %} + {% if object.get_status == 'Enabled' %} + + {% endif %} +
+
@@ -38,21 +57,5 @@
- {% if object.get_status == 'Issued' %} -
- {% if object.eidas1_did and admin_validated %} - - {% endif %} - - {% endif %} - {% if object.get_status == 'Enabled' %} - - {% endif %}
{% endblock %}