{# One operation: what it is, a console that calls it, and what it answers with. A partial, so the page embeds it and an htmx click swaps it. It carries the target id itself and is swapped `outerHTML`, which is what lets the same file be both the initial render and the replacement. #} {% from "apidocs/macros.html" import field, op_line, param_table, payload %} {% from "ui/button.html" import button %} {% from "ui/data.html" import badge, caption, card, item, item_list, kbd, link %} {% from "ui/disclosure.html" import collapsible %} {% from "ui/feedback.html" import spinner %} {# `textarea_field` is the kit's own, as of 0.2. This template carried a local copy while it was still a roadmap item; keeping one now would mean a second textarea with its own idea of `hint` and no `error` — and `error` is the seam 0.3 fills in, which the console wants as much as any form does. The three attributes below ride through `**attrs`, and none is decoration: a JSON body under a spell-checker is a wall of red squiggles, and mobile autocapitalisation turns `{"title"` into `{"Title"`, a payload that fails validation for a reason nothing on screen explains. #} {% from "ui/form.html" import form, textarea_field %} {% from "ui/layout.html" import divider, grid, row, section, stack %}