ui/packages/consul-ui/app/components/consul/token/fieldsets/README.mdx
Presentational component that renders the token create/edit form: it delegates field rendering to Fieldsets or FieldsetsLegacy and exposes Save / Cancel / Delete actions as closure args.
<Consul::Token::Form
@form={{form}}
@item={{item}}
@token={{token}}
@create={{create}}
@local={{local}}
@name={{name}}
@dc={{dc}}
@partition={{partition}}
@nspace={{nspace}}
@id={{id}}
@onCreate={{route-action 'create' item}}
@onUpdate={{route-action 'update' item}}
@onCancel={{route-action 'cancel' item}}
@onDelete={{route-action 'delete'}}
@onChange={{action 'change'}}
/>
| Arg | Type | Required | Description |
|---|---|---|---|
@form | object | yes | Form builder / changeset used by fieldsets. |
@item | object | yes | Token model / changeset. |
@token | object | no | Token metadata (used for comparisons like AccessorID). |
@create | boolean | no | True when rendering create flow. |
@local | boolean | no | Local flag for new tokens (use lowercase @local). |
@name | string | no | Prefix/name used by legacy fieldset inputs. |
@dc @partition @nspace @id | string | no | Context values forwarded to selectors and DataSource URIs. |
@onCreate @onUpdate @onCancel @onDelete | function | no | Closure actions invoked for Save/Cancel/Delete (pass route-action closures to invoke route handlers). |
@onChange | function | no | Change handler forwarded to fieldsets (use action 'change'). |
@onCreate when creating, otherwise @onUpdate.@onCancel. Prefer passing route-action so route-level hooks (e.g. WithBlockingActions) run.@onDelete.@onChange to update caller state; pass action 'change' from the parent.@Local is reserved) — use lowercase names.