The personal finance app for everyone (by everyone)
Ruby
Add UI clarity for non-cash account balance tracking (#336)
Juan José Matadc1db385176c
diff --git a/app/views/other_assets/edit.html.erb b/app/views/other_assets/edit.html.erbindex 930ce27aa7..4ec4161f51 100644--- a/app/views/other_assets/edit.html.erb+++ b/app/views/other_assets/edit.html.erb@@ -1,6 +1,9 @@<%= render DS::Dialog.new do |dialog| %><% dialog.with_header(title: t(".edit", account: @account.name)) %><% dialog.with_body do %>- <%= render "form", account: @account, url: other_asset_path(@account) %>+ <div class="space-y-2">+ <%= render DS::Alert.new(message: t(".balance_tracking_info"), variant: :info) %>+ <%= render "form", account: @account, url: other_asset_path(@account) %>+ </div><% end %><% end %>diff --git a/app/views/other_assets/new.html.erb b/app/views/other_assets/new.html.erbindex 75737adab1..7377c88e08 100644--- a/app/views/other_assets/new.html.erb+++ b/app/views/other_assets/new.html.erb@@ -1,6 +1,9 @@<%= render DS::Dialog.new do |dialog| %><% dialog.with_header(title: t(".title")) %><% dialog.with_body do %>- <%= render "form", account: @account, url: other_assets_path %>+ <div class="space-y-2">+ <%= render DS::Alert.new(message: t(".balance_tracking_info"), variant: :info) %>+ <%= render "form", account: @account, url: other_assets_path %>+ </div><% end %><% end %>diff --git a/config/locales/views/other_assets/en.yml b/config/locales/views/other_assets/en.ymlindex be3f0f4314..a04066b9ae 100644--- a/config/locales/views/other_assets/en.yml+++ b/config/locales/views/other_assets/en.yml@@ -3,5 +3,7 @@ en:other_assets:edit:edit: Edit %{account}+ balance_tracking_info: "Other Assets are tracked via manual valuations using 'New Balance', not transactions. Cashflow will not affect the account balance."new:title: Enter asset details+ balance_tracking_info: "Other Assets are tracked via manual valuations using 'New Balance', not transactions. Cashflow will not affect the account balance."