Fix display of report type and status
This commit is contained in:
parent
fd86281a7e
commit
ee7d99bc4c
2 changed files with 3 additions and 3 deletions
|
|
@ -121,8 +121,8 @@ func contentFromNuisance(ctx context.Context, report_id string) (result ContentS
|
|||
result.Report.Address = nuisance.Address
|
||||
result.Report.Created = nuisance.Created
|
||||
result.Report.ImageCount = len(images)
|
||||
result.Report.Status = nuisance.Status.String()
|
||||
result.Report.Type = nuisance.Status.String()
|
||||
result.Report.Status = strings.Title(nuisance.Status.String())
|
||||
result.Report.Type = "Mosquito Nuisance"
|
||||
result.Report.Details = []DetailEntry{
|
||||
DetailEntry{
|
||||
Name: "Active early morning?",
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ document.addEventListener("DOMContentLoaded", onLoad);
|
|||
<div class="card mb-4">
|
||||
<div class="card-header bg-primary text-white d-flex justify-content-between align-items-center">
|
||||
<h5 class="mb-0">Report {{.Report.ID|publicReportID}}</h5>
|
||||
<span class="badge bg-warning text-dark status-badge">Reported</span>
|
||||
<span class="badge bg-warning text-dark status-badge">{{.Report.Status}}</span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue