Add inspections to cell page

This commit is contained in:
Eli Ribble 2025-11-19 22:30:01 +00:00
parent 7b13b4b1ad
commit aab9bd0c44
No known key found for this signature in database
2 changed files with 57 additions and 16 deletions

View file

@ -118,31 +118,28 @@
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Approximate Address</th>
<th>Inspection Date</th>
<th>Technician Comments</th>
<th>LocationID</th>
<th>Location</th>
<th>Date</th>
<th>Action</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{{ range .Inspections }}
<tr>
<td>123 Main St</td>
<td>04/15/2023</td>
<td>Found larvae in standing water near gutter downspout.</td>
</tr>
<tr>
<td>125 Main St</td>
<td>04/15/2023</td>
<td>Catch basin had moderate larvae activity.</td>
</tr>
<tr>
<td>130 Main St</td>
<td>04/14/2023</td>
<td>Drainage ditch showing signs of mosquito breeding.</td>
<td>{{.LocationID|uuidShort}}</td>
<td>{{.Location}}</td>
<td>{{.Date|timeSince}}</td>
<td>{{.Action}}</td>
<td>{{.Notes}}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
<!--
<nav aria-label="Inspections pagination">
<ul class="pagination justify-content-center">
<li class="page-item disabled">
@ -156,6 +153,7 @@
</li>
</ul>
</nav>
-->
</div>
</div>
</div>