From 30f7c120e11dc06c17ec5b76d83aac43c809ac0f Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Fri, 13 Sep 2024 11:45:27 -0400 Subject: [PATCH] Allow partial investment quantities (#1174) --- app/views/account/trades/_form.html.erb | 2 +- app/views/accounts/new.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/account/trades/_form.html.erb b/app/views/account/trades/_form.html.erb index 10d0dac8..a6a9168c 100644 --- a/app/views/account/trades/_form.html.erb +++ b/app/views/account/trades/_form.html.erb @@ -21,7 +21,7 @@
- <%= form.number_field :qty, label: t(".qty"), placeholder: "10", min: 0 %> + <%= form.number_field :qty, label: t(".qty"), placeholder: "10", min: 0.000000000000000001, step: "any" %>
diff --git a/app/views/accounts/new.html.erb b/app/views/accounts/new.html.erb index c7ca188a..460293a2 100644 --- a/app/views/accounts/new.html.erb +++ b/app/views/accounts/new.html.erb @@ -1,6 +1,6 @@

<%= t(".title") %>

<%= modal do %> -
+
<% if @account.accountable.blank? %>
<%= t ".select_accountable_type" %>