<% if params[:step] == "method_select" %>
  <%= render "accounts/new/method_selector",
             path: new_depository_path(return_to: params[:return_to]),
             provider_configs: @provider_configs,
             accountable_type: "Depository" %>
<% else %>
  <%= render DS::Dialog.new do |dialog| %>
    <% dialog.with_header(title: t(".title")) %>
    <% dialog.with_body do %>
      <%= render "depositories/form", account: @account, url: depositories_path %>
    <% end %>
  <% end %>
<% end %>
