fix hide hid of erasure certificate

This commit is contained in:
Cayo Puigdefabregas 2023-03-15 17:19:31 +01:00
parent 56c970e810
commit a27dc0914c
2 changed files with 22 additions and 2 deletions

View file

@ -23,6 +23,16 @@
padding-top: 0px; padding-top: 0px;
padding-bottom: 5px; padding-bottom: 5px;
} }
#ApplyDeviceLots {
color: #993365;
font-weight: bold;
}
#ApplyDeviceLots.disabled {
color: #adb5bd;
font-weight: normal;
pointer-events: none;
background-color: #fff;
}
.help { .help {
color: #993365; color: #993365;
} }

View file

@ -320,14 +320,14 @@
<dt>Computer where was erase:</dt> <dt>Computer where was erase:</dt>
<dd>Title: {{ erasure.parent.__format__('ts') }}</dd> <dd>Title: {{ erasure.parent.__format__('ts') }}</dd>
<dd>DevicehubID: {{ erasure.parent.dhid }}</dd> <dd>DevicehubID: {{ erasure.parent.dhid }}</dd>
<dd>Hid: {{ erasure.parent.hid }}</dd> <dd>Hid: {{ erasure.parent.chid }}</dd>
<dd>Tags: {{ erasure.parent.tags }}</dd> <dd>Tags: {{ erasure.parent.tags }}</dd>
{% if erasure.device.parent %} {% if erasure.device.parent %}
<dt>Computer where it resides:</dt> <dt>Computer where it resides:</dt>
<dd>Title: {{ erasure.device.parent.__format__('ts') }}</dd> <dd>Title: {{ erasure.device.parent.__format__('ts') }}</dd>
<dd>DevicehubID: {{ erasure.device.parent.dhid }}</dd> <dd>DevicehubID: {{ erasure.device.parent.dhid }}</dd>
<dd>Hid: {{ erasure.device.parent.hid }}</dd> <dd>Hid: {{ erasure.device.parent.chid }}</dd>
<dd>Tags: {{ erasure.device.parent.tags }}</dd> <dd>Tags: {{ erasure.device.parent.tags }}</dd>
{% endif %} {% endif %}
{% endif %} {% endif %}
@ -344,6 +344,16 @@
</ol> </ol>
</dd> </dd>
{% endif %} {% endif %}
{% if erasure.device.proofs %}
<dt>DLT Proofs:</dt>
<dd>
<ol>
{% for proof in erasure.device.proofs %}
<li>{{ proof.type }}: {{ proof.timestamp }}</li>
{% endfor %}
</ol>
</dd>
{% endif %}
</dl> </dl>
</div> </div>
{% endfor %} {% endfor %}