<tr id="row-{{post.id}}">
  <td>{{ post.id }}</td>
  <td>
    <form hx-put="/{{ lang }}/admin/posts/{{ post.id }}" hx-target="#row-{{post.id}}" hx-swap="outerHTML">
      <input type="text" name="title" value="{{ i18n.title }}" />
      <input type="text" name="slug"  value="{{ post.slug }}" />
      <button type="submit">Save</button>
    </form>
  </td>
  <td>
    <form hx-post="/{{ lang }}/admin/posts/{{ post.id }}/publish" hx-target="#row-{{post.id}}" hx-swap="outerHTML">
      <input type="hidden" name="is_published" value="{{ 1 if not post.is_published else 0 }}">
      <button type="submit">{{ 'Unpublish' if post.is_published else 'Publish' }}</button>
    </form>
  </td>
  <td><button hx-get="/{{ lang }}/admin/posts/{{ post.id }}/cancel" hx-target="#row-{{post.id}}" hx-swap="outerHTML">Cancel</button></td>
</tr>