dialog_delete_rsc

Open a dialog to confirm the deletion of a resource.

Arguments:

  • id is the resource to delete.
  • on_success can be repeated and is forwarded to the actual deletion action.

The dialog is only opened when the current user may delete the resource. Its body is selected with the category-aware _action_dialog_delete_rsc.tpl.

{% button text="Delete" action={dialog_delete_rsc id=id on_success={redirect back}} %}

Edit on GitHub

Referred by

Category

Actions

Browser actions that templates attach to events with Zotonic's wiring system.