Sha256: 45a61606da493d610a7897e2ba9507de41c37620bf8d57b4a544bb9fb364313a

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

<%= render(Yattho::Alpha::Dialog.new(id: "my-dialog", title: title, subtitle: subtitle)) do |d| %>
  <% d.show_button { button_text } %>
  <form class="pt-3">
    <%= render(Yattho::Alpha::Dialog::Body.new) do %>
      This is a custom dialog with the body and footer wrapped in a form tag.
    <% end %>
    <%= render(Yattho::Alpha::Dialog::Footer.new(show_divider: show_divider)) do %>
      <%= render(Yattho::ButtonComponent.new(data: { "close-dialog-id": "my-dialog" })) { "Cancel" } %>
      <%= render(Yattho::ButtonComponent.new(scheme: :primary)) { "Submit" } %>
    <% end %>
  </form>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 previews/yattho/alpha/dialog_preview/with_form.html.erb
yattho_view_components-0.0.1 previews/yattho/alpha/dialog_preview/with_form.html.erb