{{ define "hx_iscsi_targets" }}
<table class="w-full">
  <thead><tr><th>Name</th><th>IQN</th><th>Action</th></tr></thead>
  <tbody>
  {{ if . }}
    {{ range . }}
      <tr>
        <td>{{ .name }}</td>
        <td>{{ .iqn }}</td>
        <td>
          <button hx-get="/api/iscsi/hx_luns/{{ .id }}">View LUNs</button>
          <button hx-get="/api/iscsi/target/{{ .id }}">Connection Info</button>
        </td>
      </tr>
    {{ end }}
  {{ end }}
  </tbody>
</table>
{{ end }}
