add credential type in credential view

This commit is contained in:
Cayo Puigdefabregas 2024-03-19 12:48:39 +01:00
parent c6f534d2f8
commit ae6928a2ae
2 changed files with 3 additions and 1 deletions

View File

@ -680,13 +680,14 @@ class CredentialsView(Credentials, SingleTableView):
class CredentialView(Credentials):
template_name = "idhub/admin/issue_credentials.html"
subtitle = _('Change credential status')
subtitle = _('Credential')
icon = ''
model = VerificableCredential
def get(self, request, *args, **kwargs):
self.pk = kwargs['pk']
self.object = get_object_or_404(self.model, pk=self.pk)
self.subtitle += ": {}".format(self.object.type)
return super().get(request, *args, **kwargs)
def get_context_data(self, **kwargs):

View File

@ -205,6 +205,7 @@ class CredentialView(MyWallet, TemplateView):
pk=self.pk,
user=self.request.user
)
self.subtitle += ": {}".format(self.object.type)
return super().get(request, *args, **kwargs)
def get_context_data(self, **kwargs):