dialog_predicate_new

Show a dialog for creating a new predicate.

Arguments:

  • title pre-fills the predicate title.
  • redirect controls whether the browser opens the new predicate's admin edit page and defaults to true.

The submitted title is passed to m_predicate:insert/2; duplicate names and permission errors are reported in the dialog.

{% button text="New predicate" action={dialog_predicate_new redirect} %}

Edit on GitHub