add Manufacturer DPP in templates

This commit is contained in:
Cayo Puigdefabregas 2023-09-26 17:32:42 +02:00
parent 0b70f42daa
commit c8ab0a959e
4 changed files with 23 additions and 0 deletions

View File

@ -115,6 +115,13 @@
<a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}">{{ device_abstract.chid }}</a>
</div>
</div>
<div class="row">
<div class="col">
Manufacturer DPP:
</div>
<div class="col">
</div>
</div>
<div class="row">
<div class="col">
Usody Identifier (DHID)

View File

@ -147,6 +147,13 @@
<a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}">{{ device_abstract.chid|truncate(20, True, '...') }}</a>
</div>
</div>
<div class="row">
<div class="col">
Manufacturer DPP:
</div>
<div class="col">
</div>
</div>
<div class="row">
<div class="col">
Last Digital Passport (Last Dpp):

View File

@ -147,6 +147,13 @@
<a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}"><small class="text-muted">{{ device_abstract.chid }}</small></a>
</div>
</div>
<div class="row">
<div class="col">
Manufacturer DPP:
</div>
<div class="col">
</div>
</div>
{% if last_dpp %}
<div class="row">
<div class="col">

View File

@ -172,6 +172,7 @@ class DidView(View):
'dpp': self.id_dpp,
'algorithm': "sha3_256",
'components': components,
'manufacturer DPP': '',
}
result = {
'@context': ['https://ereuse.org/dpp0.json'],
@ -198,6 +199,7 @@ class DidView(View):
'dpp': d.key,
'document': d.snapshot.json_hw,
'algorithm': "sha3_256",
'manufacturer DPP': '',
}
dpps.append(rr)
return {