mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
* fix: improve dark mode readability across the app * fix: improve dark mode support for asset percentage text * fix: apply suggested patch for theme-related improvements * chore: apply PR feedback – remove dark:, align with design tokens, update form builder * chore: revert background token and restore original style for visual consistency * chore: remove unnecessary class attributes from form fields using builder * refactor: move number_field and date_field into metaprogramming block * refactor: replace bg-divider-adaptive divs with <hr> and border-secondary * fix: apply requested changes and linting fixes
36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
<%= render layout: "accounts/new/container", locals: { title: t(".title") } do %>
|
|
<div class="text-sm">
|
|
<% 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 %>
|
|
|
|
<% unless params[:return_to].present? %>
|
|
<%= button_to imports_path(import: { type: "AccountImport" }),
|
|
data: { turbo_frame: :_top },
|
|
class: "flex items-center gap-4 w-full text-center focus:outline-hidden hover:bg-surface-hover focus:bg-surface-hover fg-contrast hover:fg-primary focus:fg-primary border border-transparent block px-2 rounded-lg p-2" do %>
|
|
<span style="background-color: color-mix(in srgb, #F79009 10%, white);" class="flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg border border-alpha-black-25">
|
|
<%= lucide_icon("download", style: "color: #F79009", class: "w-5 h-5") %>
|
|
</span>
|
|
<%= t("accounts.new.import_accounts") %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|