<div class="select">
  <select hx-include="[name='deck-form']"
          hx-post="/decks/{{ deck-id }}/to-category"
          hx-target="#category-select"
          hx-trigger="change"
          name="category-id" id="category-id">
    <option value="">Category</option>
    {% for category in categories %}
    <option value="{{ category.id }}"{% if category.id == category-id %} selected="selected"{% endif %}>{{ category.name }}</option>
    {% endfor %}
  </select>
</div>
