mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 04:25:21 +02:00
Add additional subtypes, add None option, prefill edit with previously selected option. (#1286)
* Add additional subtypes and allow for None * Add parens for consistency on 401 * Remove cryptocurrency investment subtype * Handle nil value * Use objects current subtype as the initial selection * Remove "None" option to default to helper prompt * Fix blank/none selection * Only include blank if subtype is present * Simplify investment subtype dropdown * Improve depository subtype
This commit is contained in:
parent
3610c6cae7
commit
c5bf1db230
4 changed files with 12 additions and 4 deletions
|
@ -1 +1 @@
|
|||
<%= f.select :subtype, options_for_select([["Checking", "checking"], ["Savings", "savings"]], selected: ""), { label: "Type" } %>
|
||||
<%= f.select :subtype, [["Checking", "checking"], ["Savings", "savings"]], { label: true, prompt: t(".prompt"), include_blank: t(".none") } %>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<%= f.select :subtype, options_for_select(Investment::SUBTYPES, selected: ""), { label: true } %>
|
||||
<%= f.select :subtype, Investment::SUBTYPES, { label: true, prompt: t(".prompt"), include_blank: t(".none") } %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue