change erasure.html template
This commit is contained in:
parent
9cc82e7a82
commit
6ca37e348c
|
@ -5,8 +5,6 @@
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>S/N</th>
|
|
||||||
<th>Tags</th>
|
|
||||||
<th>S/N Data Storage</th>
|
<th>S/N Data Storage</th>
|
||||||
<th>Type of erasure</th>
|
<th>Type of erasure</th>
|
||||||
<th>Result</th>
|
<th>Result</th>
|
||||||
|
@ -16,16 +14,6 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for erasure in erasures %}
|
{% for erasure in erasures %}
|
||||||
<tr>
|
<tr>
|
||||||
{% if erasure.parent.serial_number %}
|
|
||||||
<td>
|
|
||||||
{{ erasure.parent.serial_number.upper() }}
|
|
||||||
</td>
|
|
||||||
{% else %}
|
|
||||||
<td></td>
|
|
||||||
{% endif %}
|
|
||||||
<td>
|
|
||||||
{{ erasure.parent.tags.__format__('') }}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{{ erasure.device.serial_number.upper() }}
|
{{ erasure.device.serial_number.upper() }}
|
||||||
</td>
|
</td>
|
||||||
|
@ -51,10 +39,19 @@
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Data storage:</dt>
|
<dt>Data storage:</dt>
|
||||||
<dd>{{ erasure.device.__format__('ts') }}</dd>
|
<dd>{{ erasure.device.__format__('ts') }}</dd>
|
||||||
<dt>Computer:</dt>
|
|
||||||
<dd>{{ erasure.parent.__format__('ts') }}</dd>
|
<dt>Computer where was erase:</dt>
|
||||||
<dt>Tags:</dt>
|
<dd>Title: {{ erasure.parent.__format__('ts') }}</dd>
|
||||||
<dd>{{ erasure.parent.tags }}</dd>
|
<dd>SystemId: {{ erasure.parent.id }}</dd>
|
||||||
|
<dd>Hid: {{ erasure.parent.hid }}</dd>
|
||||||
|
<dd>Tags: {{ erasure.parent.tags }}</dd>
|
||||||
|
|
||||||
|
<dt>Computer where it resides:</dt>
|
||||||
|
<dd>Title: {{ erasure.device.parent.__format__('ts') }}</dd>
|
||||||
|
<dd>SystemId: {{ erasure.device.parent.id }}</dd>
|
||||||
|
<dd>Hid: {{ erasure.device.parent.hid }}</dd>
|
||||||
|
<dd>Tags: {{ erasure.device.parent.tags }}</dd>
|
||||||
|
|
||||||
<dt>Erasure:</dt>
|
<dt>Erasure:</dt>
|
||||||
<dd>{{ erasure.__format__('ts') }}</dd>
|
<dd>{{ erasure.__format__('ts') }}</dd>
|
||||||
{% if erasure.steps %}
|
{% if erasure.steps %}
|
||||||
|
|
Reference in a new issue