76 lines
3.1 KiB
HTML
76 lines
3.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h2>Calibration Details</h2>
|
|
<a href="{{ url_for('channels.view_channel', channel_id=calibration.channel_id) }}"
|
|
class="btn btn-outline-secondary">Back to Channel</a>
|
|
</div>
|
|
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Basic Information</h5>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<p><strong>Channel Serial:</strong> {{ calibration.channels.serial_number }}</p>
|
|
<p><strong>Work Order:</strong> {{ calibration.work_orders.order_number }}</p>
|
|
<p><strong>Date:</strong> {{ calibration.date }}</p>
|
|
<p><strong>Calibrated By:</strong> {{ calibration.calibrated_by.name }}</p>
|
|
{% if calibration.reviewed_by %}
|
|
<p><strong>Reviewed By:</strong> {{ calibration.reviewed_by.name }}</p>
|
|
{% endif %}
|
|
</div>
|
|
<div class="col-md-6">
|
|
<p><strong>Standard Used:</strong> {{ calibration.standards.make }} {{ calibration.standards.model }}</p>
|
|
<p><strong>Standard Description:</strong> {{ calibration.standards.description }}</p>
|
|
<p><strong>Status:</strong>
|
|
<span class="badge bg-{{ 'success' if calibration.passed else 'danger' }}">
|
|
{{ 'Passed' if calibration.passed else 'Failed' }}
|
|
</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Calibration Values</h5>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<p><strong>Scale:</strong> {{ calibration.scale }}</p>
|
|
<p><strong>Offset:</strong> {{ calibration.offset }}</p>
|
|
</div>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Point</th>
|
|
<th>Set Value</th>
|
|
<th>Deviation</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>High</td>
|
|
<td>{{ calibration.set_high }}</td>
|
|
<td>{{ calibration.deviation_high }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Mid</td>
|
|
<td>{{ calibration.set_mid }}</td>
|
|
<td>{{ calibration.deviation_mid }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Low</td>
|
|
<td>{{ calibration.set_low }}</td>
|
|
<td>{{ calibration.deviation_low }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|