From 7d8828feca1e9c607333c6ff585dc8142bcf39d0 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Fri, 13 Sep 2024 11:28:30 -0400 Subject: [PATCH] Allow partial investment quantities --- 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" %> -- 2.53.0