Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

566 B
Raw Blame
<%= render(
      Primer::Alpha::Dialog.new(
        title: dialog_title,
        size: :large,
        id: dialog_id
      )
    ) do |d| %>
  <% d.with_show_button { button_text } %>

  <% d.with_header(variant: :large) %>
  <% d.with_body { message } %>

  <% d.with_footer do %>
    <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { "Cancel" } %>
    <%= form_with(url: "some_url", method: :delete) do %>
      <%= render(Primer::Beta::Button.new(scheme: :danger, type: :submit)) { "Confirm" } %>
    <% end %>
  <% end %>
<% end %>