<%= turbo_frame_tag "modal" do %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".title")) %> <% dialog.with_body do %> <% if @error_message.present? %>
<%= @error_message %>
<% end %> <%= form_with model: @simplefin_item, url: simplefin_items_path, method: :post, data: { turbo: true, turbo_frame: "_top" } do |f| %>
<%= f.label :setup_token, t(".setup_token"), class: "text-sm text-secondary block mb-1" %> <%= f.text_field :setup_token, class: "input", placeholder: t(".setup_token_placeholder") %>
<%= link_to t(".cancel"), accounts_path, class: "btn", data: { turbo_frame: "_top", action: "DS--dialog#close" } %> <%= f.submit t(".connect"), class: "btn btn--primary" %>
<% end %> <% end %> <% end %> <% end %>