mirror of
https://github.com/we-promise/sure.git
synced 2026-05-07 12:54:04 +00:00
* Add permitted_accountable_attributes for investments * Include fields_for for accountable subtype selection
10 lines
509 B
Plaintext
10 lines
509 B
Plaintext
<%# locals: (account:, url:) %>
|
|
|
|
<%= render "accounts/form", account: account, url: url do |form| %>
|
|
<%= form.fields_for :accountable do |investment_form| %>
|
|
<%= investment_form.select :subtype,
|
|
grouped_options_for_select(Investment.subtypes_grouped_for_select(currency: Current.family.currency), account.accountable.subtype),
|
|
{ label: true, prompt: t("investments.form.subtype_prompt"), include_blank: t("investments.form.none") } %>
|
|
<% end %>
|
|
<% end %>
|