56 lines
2.1 KiB
HTML
56 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>Probe Management</h2>
|
|
<a href="{{ url_for('probes.new_probe') }}" class="btn btn-primary">Add New Probe</a>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="mb-0">All Probes</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
{% if probes %}
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Serial Number</th>
|
|
<th>Description</th>
|
|
<th>Created</th>
|
|
<th>Status</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for probe in probes %}
|
|
<tr>
|
|
<td>{{ probe.serial_number }}</td>
|
|
<td>{{ probe.description }}</td>
|
|
<td>{{ probe.created_at.strftime('%Y-%m-%d') }}</td>
|
|
<td>
|
|
{% if probe.retired_at %}
|
|
<span class="badge bg-secondary">Retired</span>
|
|
{% else %}
|
|
<span class="badge bg-success">Active</span>
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<a href="{{ url_for('probes.view_probe', probe_id=probe.id) }}"
|
|
class="btn btn-sm btn-outline-primary">View</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
<div class="alert alert-info">No probes found</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|