52 lines
2.1 KiB
HTML
52 lines
2.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>Standards Management</h2>
|
|
<a href="{{ url_for('standards.new_standard') }}" class="btn btn-primary">Add New Standard</a>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="mb-0">All Standards</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
{% if standards %}
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Make</th>
|
|
<th>Model</th>
|
|
<th>Description</th>
|
|
<th>Last Calibration</th>
|
|
<th>Next Calibration Due</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for standard in standards %}
|
|
<tr>
|
|
<td>{{ standard.make }}</td>
|
|
<td>{{ standard.model }}</td>
|
|
<td>{{ standard.description }}</td>
|
|
<td>{{ standard.calibrated_on.strftime('%Y-%m-%d') }}</td>
|
|
<td>{{ standard.calibration_due.strftime('%Y-%m-%d') }}</td>
|
|
<td>
|
|
<a href="{{ url_for('standards.view_standard', standard_id=standard.id) }}"
|
|
class="btn btn-sm btn-outline-primary">View</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
<div class="alert alert-info">No standards found. Click "Add New Standard" to create one.</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|