aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-08 11:45:44 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-08 11:45:44 +0100
commit6c7a39102ed5f2362ca82f6e4d877c2b6ac76e03 (patch)
treef5981c11653c994ab3af9e7c63e164e2e66585f6 /ctrack
parenta1eb8dc469171a857a8805ed96831377dee723c6 (diff)
better looking caf detail page
Diffstat (limited to 'ctrack')
-rw-r--r--ctrack/caf/templates/caf/caf_detail.html19
1 files changed, 11 insertions, 8 deletions
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html
index 56cb744..e3dae9f 100644
--- a/ctrack/caf/templates/caf/caf_detail.html
+++ b/ctrack/caf/templates/caf/caf_detail.html
@@ -7,17 +7,19 @@
<div class="container mt-3">
<div class="row">
- <div class="col-12">
- <h4 class="bg-info mb-2 p-2 border-top border-bottom rounded border-secondary text-white">{{ object }} <span
- class="badge badge-primary float-right">{{ object.confidence_grading }}</span>
- <span class="badge badge-primary float-right">{{ object.quality_grading }}</span></h4>
+ <div class="col">
+ <div class="row">
+ <div class="col-md-12">
+ <h4 class="mb-2 p-2 border rounded border-secondary">{{ object }}</h4>
+ </div>
+ </div>
</div>
</div>
<div class="row">
<div class="col-12">
- <h3>History:</h3>
{% if tde and sde %}
+ <h3>History:</h3>
<div class="row">
<div class="col-md-12">
No events registered for this CAF.
@@ -65,11 +67,11 @@
</tr>
<tr>
<td><strong>Quality Grading:</strong></td>
- <td>{{ object.quality_grading }}</td>
+ <td><h4><span class="badge badge-secondary">{{ object.quality_grading }}</span></h4></td>
</tr>
<tr>
<td><strong>Confidence Grading:</strong></td>
- <td>{{ object.confidence_grading }}</td>
+ <td><h4><span class="badge badge-info">{{ object.confidence_grading }}</span></h4></td>
</tr>
<tr>
<td><strong>File:</strong></td>
@@ -134,7 +136,8 @@
<div class="col-md-12">
<div class="card bg-light">
<div class="card-body">
- <div class="card-title text-muted">CAF History <a href="{% url "register:create_from_caf" object.pk %}" class="btn btn-outline-primary btn-sm float-right">Add
+ <div class="card-title text-muted">CAF History <a href="{% url "register:create_from_caf" object.pk %}"
+ class="btn btn-outline-primary btn-sm float-right">Add
new...</a></div>
<div class="table table-responsive">
<table class="table">