<%= render component("orders/show").new(order: @order) %> <%= render component("ui/modal").new(title: t(".title"), close_path: close_path) do |modal| %> <%= form_for @order, url: close_path, html: { id: form_id} do |f| %> <%= render component("ui/forms/field").text_field(f, :email) %> <% end %> <% modal.with_actions do %> <%= render component("ui/button").new(tag: :a, scheme: :secondary, href: close_path, type: :submit, text: t('.cancel')) %> <%= render component("ui/button").new(form: form_id, type: :submit, text: t('.submit')) %> <% end %> <% end %>