2024-11-04 20:27:31 -05:00
|
|
|
<%= render layout: "accounts/new/container", locals: { title: t(".title") } do %>
|
|
|
|
<div class="text-sm">
|
2025-02-25 17:28:40 -05:00
|
|
|
<% unless params[:classification] == "liability" %>
|
|
|
|
<%= render "account_type", accountable: Depository.new %>
|
|
|
|
<%= render "account_type", accountable: Investment.new %>
|
|
|
|
<%= render "account_type", accountable: Crypto.new %>
|
|
|
|
<%= render "account_type", accountable: Property.new %>
|
|
|
|
<%= render "account_type", accountable: Vehicle.new %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless params[:classification] == "asset" %>
|
|
|
|
<%= render "account_type", accountable: CreditCard.new %>
|
|
|
|
<%= render "account_type", accountable: Loan.new %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless params[:classification] == "liability" %>
|
|
|
|
<%= render "account_type", accountable: OtherAsset.new %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless params[:classification] == "asset" %>
|
|
|
|
<%= render "account_type", accountable: OtherLiability.new %>
|
|
|
|
<% end %>
|
2024-10-18 14:37:42 -04:00
|
|
|
|
2024-11-04 20:27:31 -05:00
|
|
|
<% unless params[:return_to].present? %>
|
|
|
|
<%= button_to imports_path(import: { type: "AccountImport" }),
|
|
|
|
data: { turbo_frame: :_top },
|
2025-04-30 18:14:22 -04:00
|
|
|
class: "flex items-center gap-4 w-full text-center focus:outline-hidden hover:bg-surface-hover focus:bg-surface-hover fg-primary border border-transparent block px-2 rounded-lg p-2" do %>
|
2025-07-18 08:30:00 -04:00
|
|
|
<%= render DS::FilledIcon.new(
|
2025-04-30 18:14:22 -04:00
|
|
|
icon: "download",
|
|
|
|
hex_color: "#F79009",
|
|
|
|
) %>
|
|
|
|
|
2024-11-04 20:27:31 -05:00
|
|
|
<%= t("accounts.new.import_accounts") %>
|
|
|
|
<% end %>
|
2024-02-08 10:46:05 -06:00
|
|
|
<% end %>
|
2024-02-09 20:21:19 -05:00
|
|
|
</div>
|
2024-04-09 16:08:58 +04:00
|
|
|
<% end %>
|