<form hx-post="{{ action }}" hx-target="closest .editable-field" hx-swap="outerHTML">
  {% for field in form %}
    {% include "forms/partials/form_field.html" with field=field %}
  {% endfor %}
  <button type="submit">Save</button>
  <button type="button" hx-trigger="click" hx-swap="none">Cancel</button>
</form>
