Sha256: 6f148fc19b2be77ce0040c22805fadf84ebd3557409b3ca438224446c0095f35

Contents?: true

Size: 703 Bytes

Versions: 4

Compression:

Stored size: 703 Bytes

Contents

<%= form_with(url: generic_form_submission_path(format: route_format)) do |f| %>
  <%= render(Primer::OpenProject::DangerConfirmationDialog.new(
        title: "Delete dialog",
        form_arguments: { builder: f, name: "confirm_very_dangerous_action" }
      )) do |dialog| %>
    <% dialog.with_show_button { "Click me" } %>
    <% dialog.with_confirmation_message do |message|
        message.with_heading(tag: :h2).with_content("Permanently delete?")
        message.with_description_content("This action is not reversible. Please proceed with caution.")
       end %>
    <% dialog.with_confirmation_check_box_content("I understand that this deletion cannot be reversed") %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.52.2 previews/primer/open_project/danger_confirmation_dialog_preview/with_form_builder_form.html.erb
openproject-primer_view_components-0.52.1 previews/primer/open_project/danger_confirmation_dialog_preview/with_form_builder_form.html.erb
openproject-primer_view_components-0.52.0 previews/primer/open_project/danger_confirmation_dialog_preview/with_form_builder_form.html.erb
openproject-primer_view_components-0.51.0 previews/primer/open_project/danger_confirmation_dialog_preview/with_form_builder_form.html.erb