Skip to content
Sections
Fiesta

confirm-form

Choices and actions The controls that pick from options, and the rows that end a form. Each one sits in a padded rst-box, because that is the card a form goes in.

The confirm page's action row. Destructive actions get their own route rather than a dialog, so there is nothing to script.

Each example is live, but its links go nowhere. HTML shows the markup to copy.

Destructive

Preview

Put this inside <section rst-box>.

<form rst-form-actions method="post" action="/posts/1/delete">
  <input type="hidden" name="csrf" value="tok-123">
  <input type="hidden" name="id" value="1">
  <a rst-btn="ghost lg" href="/posts/1">Cancel</a>
  <button type="submit" rst-btn="danger lg">Delete this post</button>
</form>

In an app this would reach /posts/1, /posts/1/delete. Here its links and forms go nowhere.

Ordinary, default cancel wording

The cancel link says Cancel, which is the usual wording. Change it when the form's own words are clearer.

Preview

Put this inside <section rst-box>.

<form rst-form-actions method="post" action="/posts/1/publish">
  <a rst-btn="ghost lg" href="/posts/1">Cancel</a>
  <button type="submit" rst-btn="primary lg">Publish</button>
</form>

In an app this would reach /posts/1, /posts/1/publish. Here its links and forms go nowhere.