Update dashboard.html

This commit is contained in:
Anh-Thy04
2025-06-17 17:34:11 +02:00
parent 84f4e6e699
commit 1aadfb4502

View File

@@ -47,11 +47,12 @@
<div class="card-body">
<h5 class="card-title fs-4">Numberplates</h5>
<div class="log-container" style="max-height: 250px; overflow-y: auto;">
<table class="table table-sm table-hover">
<table class="table table-sm table-hover align-middle">
<thead>
<tr>
<th scope="col" class="fs-5">ID</th>
<th scope="col" class="fs-5">Numberplate</th>
<th scope="col" class="fs-5" style="width: 21%;">ID</th>
<th scope="col" class="fs-5" style="width: 42%;">Numberplate</th>
<th scope="col" class="fs-5">Actions</th>
</tr>
</thead>
<tbody>
@@ -60,9 +61,9 @@
<td><small class="fs-6">{{ plate.id }}</small></td>
<td><small class="fs-6">{{ plate.plate }}</small></td>
<td>
<a href="{{ url_for('dash.edit', plate=plate.plate) }}" class="btn btn-sm btn-primary">Edit</a>
<a href="{{ url_for('dash.edit', plate=plate.plate) }}" class="btn btn-sm btn-secondary">Edit</a>
<form method="POST" action="{{ url_for('dash.delete_plate', plate=plate.plate) }}" style="display:inline;" onsubmit="return confirm('Are you sure you want to delete this numberplate?');">
<button type="submit" class="btn btn-sm btn-danger">Delete</button>
<button type="submit" class="btn btn-sm btn-secondary">Delete</button>
</form>
</td>
</tr>