2025-01-08 17:59:04 +01:00
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Initial Contact</th>
|
|
|
|
<th>Last Contact</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.AgentID}}</td>
|
|
|
|
<td>{{.AgentName}}</td>
|
|
|
|
<td>{{.InitialContact}}</td>
|
|
|
|
<td>{{.LastContact}}</td>
|
|
|
|
<td>
|
2025-01-09 16:42:27 +01:00
|
|
|
<button class="btn btn-warning" hx-get="/agents/{{.AgentID}}" hx-target="#agentDetails" hx-swap="innerHTML">View</button>
|
2025-01-08 17:59:04 +01:00
|
|
|
|
|
|
|
<button class="btn btn-danger" hx-delete="/agents/{{.AgentID}}" hx-target="#agentList" hx-swap="innerHTML">Delete</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|