1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 23:15:24 +02:00

Fix transaction form account pre-filling and form styles

This commit is contained in:
Zach Gollwitzer 2025-05-02 08:45:17 -04:00
parent a1d64d6c2e
commit 752835f492
3 changed files with 9 additions and 9 deletions

View file

@ -6,7 +6,7 @@
<% end %>
<section>
<%= render "shared/transaction_type_tabs", active_tab: params[:nature] == "inflow" ? "income" : "expense" %>
<%= render "shared/transaction_type_tabs", active_tab: params[:nature] == "inflow" ? "income" : "expense", account_id: params[:account_id] %>
<%= f.hidden_field :nature, value: params[:nature] || "outflow", data: { "transaction-form-target": "natureField" } %>
<%= f.hidden_field :entryable_type, value: "Transaction" %>