details device

This commit is contained in:
Cayo Puigdefabregas 2023-02-24 17:01:38 +01:00
parent 26f8d191fb
commit 26ed0f3577
1 changed files with 39 additions and 188 deletions

View File

@ -12,6 +12,7 @@
@page { @page {
size: A4 portrait; /* can use also 'landscape' for orientation */ size: A4 portrait; /* can use also 'landscape' for orientation */
margin: 1.0cm 1.5cm 3.5cm 1.5cm; margin: 1.0cm 1.5cm 3.5cm 1.5cm;
font-family: "Source Sans Pro", Calibri, Candra, Sans serif;
@top { @top {
content: element(header); content: element(header);
@ -58,6 +59,10 @@
img {max-height: 150px; width: auto;} img {max-height: 150px; width: auto;}
.company-logo {float: left;} .company-logo {float: left;}
.customer-logo {float: right;} .customer-logo {float: right;}
.page-break:not(section:first-of-type) {
page-break-before: always
}
}
</style> </style>
</head> </head>
<body> <body>
@ -241,9 +246,7 @@
</div> </div>
</div> </div>
<p style="break-before: page;"></p> <div class="row mt-3 page-break">
<div class="row mt-3">
<div class="col"> <div class="col">
<h1>Devices Summary</h1> <h1>Devices Summary</h1>
</div> </div>
@ -281,191 +284,39 @@
</div> </div>
</div> </div>
</div> </div>
<p style="break-before: page;"></p> {% for erasure in erasures %}
<div class="container mb-5"> <div class="container mb-5 page-break">
<div class="row mt-3"> <h4>{{ erasure.device.__format__('t') }}</h4>
<div class="col"> <dl>
<h1>1927E18B43F4</h1> <dt>Data storage:</dt>
</div> <dd>{{ erasure.device.__format__('ts') }}</dd>
</div>
<div class="row mt-3"> <dt>Computer where was erase:</dt>
<div class="col-2"> <dd>Title: {{ erasure.parent.__format__('ts') }}</dd>
<span>Result</span> <dd>DevicehubID: {{ erasure.parent.dhid }}</dd>
</div> <dd>Hid: {{ erasure.parent.hid }}</dd>
<div class="col"> <dd>Tags: {{ erasure.parent.tags }}</dd>
<span>Failed</span>
</div> <dt>Computer where it resides:</dt>
</div> <dd>Title: {{ erasure.device.parent.__format__('ts') }}</dd>
<div class="row mt-3"> <dd>DevicehubID: {{ erasure.device.parent.dhid }}</dd>
<div class="col"> <dd>Hid: {{ erasure.device.parent.hid }}</dd>
<strong>Storage Drive</strong> <dd>Tags: {{ erasure.device.parent.tags }}</dd>
</div>
</div> <dt>Erasure:</dt>
<div class="row"> <dd>{{ erasure.__format__('ts') }}</dd>
<div class="col"> {% if erasure.steps %}
<div class="row"> <dt>Erasure steps:</dt>
<div class="col-2"> <dd>
<span>Manufacturer:</span> <ol>
</div> {% for step in erasure.steps %}
<div class="col"> <li>{{ step.__format__('') }}</li>
<span>Crucial</span> {% endfor %}
</div> </ol>
</div> </dd>
<div class="row"> {% endif %}
<div class="col-2"> </dl>
<span>Model:</span>
</div>
<div class="col">
<span>CT240BX500ssd1</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>SN:</span>
</div>
<div class="col">
<span>1927E18B43F4</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Storage Medium:</span>
</div>
<div class="col">
<span>SSD</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Connector:</span>
</div>
<div class="col">
<span>SAS</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Size:</span>
</div>
<div class="col">
<span>240GB</span>
</div>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col">
<strong>Method</strong>
</div>
</div>
<div class="row">
<div class="col">
<div class="row">
<div class="col-2">
<span>Name:</span>
</div>
<div class="col">
<span>Baseline</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Standard:</span>
</div>
<div class="col">
<span>NIST SP-800-88</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Removal process:</span>
</div>
<div class="col">
<span>Overwriting</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Program:</span>
</div>
<div class="col">
<span>Shred</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Verification status:</span>
</div>
<div class="col">
<span>No</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Detected bad sectors:</span>
</div>
<div class="col">
<span>-</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Hidden areas:</span>
</div>
<div class="col">
<span>No</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Warnings:</span>
</div>
<div class="col">
<span>No</span>
</div>
</div>
<div class="row">
<div class="col-2">
<strong>Overwriting steps</strong>
</div>
<div class="col">
<span>1 (0)</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Step:</span>
</div>
<div class="col">
<span>1</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Date Init:</span>
</div>
<div class="col">
<span>2022-12-20 11:00:24</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Date End:</span>
</div>
<div class="col">
<span>2022-12-20 11:26:24</span>
</div>
</div>
<div class="row">
<div class="col-2">
<span>Duration:</span>
</div>
<div class="col">
<span>0:26:00</span>
</div>
</div>
</div>
</div>
</div> </div>
{% endfor %}
</body> </body>
</html> </html>