{{ define "iscsi" }}
<div class="p-4">
  <h2 class="text-xl">iSCSI Targets</h2>
  <div hx-get="/api/iscsi/hx_targets" hx-swap="outerHTML"></div>
  <div class="mt-4">
    <h3>Create Target</h3>
    <form hx-post="/api/iscsi/create_target">
      <label>Name: <input type="text" name="name"/></label>
      <label>IQN: <input type="text" name="iqn"/></label>
      <button type="submit">Create Target</button>
    </form>
  </div>
  <div class="mt-4">
    <h3>Create LUN</h3>
    <form hx-post="/api/iscsi/create_lun">
      <label>Target ID: <input type="text" name="target_id"/></label>
      <label>ZVol path: <input type="text" name="zvol"/></label>
      <label>Size (e.g. 10G): <input type="text" name="size"/></label>
      <button type="submit">Create LUN</button>
    </form>
  </div>
</div>
{{ end }}
