Sha256: fc78f98b02207e4878443482cd0f52489972c9383193200faca7bdc51b6058d0

Contents?: true

Size: 902 Bytes

Versions: 6

Compression:

Stored size: 902 Bytes

Contents

<%= render(Primer::OpenProject::FeedbackDialog.new(id: "my-dialog")) do |dialog| %>
  <% dialog.with_show_button { "Click me" } %>
  <% dialog.with_feedback_message(icon_arguments: { icon: icon, color: icon_color }, loading: loading_state) do |message| %>
    <% message.with_heading(tag: :h2).with_content("Awesome!") %>
    <% message.with_description { "Great! Everything worked well." } if show_description %>
  <% end %>
  <% if show_additional_content %>
    <% dialog.with_additional_content(display: :inline) do %>
      <%= render(Primer::Alpha::Banner.new) { "Some additional content below" } %>
      <% end %>
  <% end %>
  <% if custom_footer %>
    <% dialog.with_footer do %>
      <%= render(Primer::Beta::Button.new("data-close-dialog-id": "my-dialog")) { "Cancel" } %>
      <%= render(Primer::Beta::Button.new(scheme: :primary)) { "Accept" } %>
      <% end %>
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.51.0 previews/primer/open_project/feedback_dialog_preview/playground.html.erb
openproject-primer_view_components-0.50.1 previews/primer/open_project/feedback_dialog_preview/playground.html.erb
openproject-primer_view_components-0.50.0 previews/primer/open_project/feedback_dialog_preview/playground.html.erb
openproject-primer_view_components-0.49.2 previews/primer/open_project/feedback_dialog_preview/playground.html.erb
openproject-primer_view_components-0.49.1 previews/primer/open_project/feedback_dialog_preview/playground.html.erb
openproject-primer_view_components-0.49.0 previews/primer/open_project/feedback_dialog_preview/playground.html.erb