<div class="field is-horizontal">
  <div class="field-label">
    <label class="label" for="category-id">Category</label>
  </div>
  <div class="field-body">
    <div class="select">
      <select
        hx-post="/decks/{{ id }}/to-category"
        hx-trigger="change"
        hx-target="#saved-category-list"
        name="category-id" id="category-id">
        <option value="">None</option>
        {% for cat in saved-category-list %}
        <option value="{{ cat.id }}"{% if cat.id == category.id %} selected="selected"{% endif %}>{{ cat.name }}</option>
        {% endfor %}
      </select>
    </div>
  </div>
</div>
