{{ define "repo/fragments/spindleInput" }}
  {{/* free text: membership lives on the spindle, so the appview can't offer a
       closed list. .Spindles is only a type-ahead of recently used spindles. */}}
  <input
    type="text"
    id="spindle"
    name="spindle"
    list="spindle-options"
    value="{{ .Current }}"
    placeholder="spindle.example.com"
    autocomplete="off"
    spellcheck="false"
    class="{{ or .Class "w-full py-2" }}"
  />
  <datalist id="spindle-options">
    {{ range .Spindles }}
      <option value="{{ . }}"></option>
    {{ end }}
  </datalist>
{{ end }}
