Improve display of pool conditions

This commit is contained in:
Eli Ribble 2026-02-24 20:34:21 +00:00
parent 1366e89cf6
commit 9c6155367b
No known key found for this signature in database
5 changed files with 48 additions and 51 deletions

View file

@ -182,32 +182,14 @@ document.addEventListener('DOMContentLoaded', onLoad);
<td>{{ .Street }}</td>
<td>{{ .City }}</td>
<td>{{ .PostalCode }}</td>
{{ if eq .Status "new" }}
<td>
<span class="badge bg-success status-badge">New</span>
</td>
{{ else if eq .Status "existing" }}
<td>
<span class="badge bg-primary status-badge"
>Existing</span
>
</td>
{{ else if eq .Status "outside" }}
<td>
<span class="badge bg-warning status-badge"
>Outside</span
>
</td>
{{ else }}
<td>
<span class="badge bg-warning status-badge"
>{{ .Status }}</span
>
</td>
{{ end }}
<td>
<span class="badge bg-{{ .Condition }} status-badge"
>{{ .Condition }}</span
<span class="badge status {{ .Status }}"
>{{ .Status|title }}</span
>
</td>
<td>
<span class="badge condition {{ .Condition }}"
>{{ .Condition|title }}</span
>
</td>
<td>{{ len .Tags }}</td>

View file

@ -58,7 +58,7 @@
<td>Pool Condition</td>
<td>The condition of the pool when it was last inspected</td>
<td>Text</td>
<td>"blue", "dry", "green", or "murky"</td>
<td>"blue", "dry", "false pool", "green", or "murky"</td>
</tr>
<tr>
<td>Property Owner Name</td>