diff options
author | David Gay <david@davidgay.org> | 2021-06-03 21:46:18 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-03 21:46:18 -0400 |
commit | 07ad9fc5c16f22adab89575fb41635953e6a466d (patch) | |
tree | 19957bd10199529a58ad1226635e72eb12f3971e /app/views/bazaar | |
parent | 445fc96368ef2fa9f3a9be17cd0ae7d160de315b (diff) |
Set low-ish `size` of bazaar number fields
Diffstat (limited to 'app/views/bazaar')
-rw-r--r-- | app/views/bazaar/index.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/bazaar/index.html.erb b/app/views/bazaar/index.html.erb index 63d708f..2ee433c 100644 --- a/app/views/bazaar/index.html.erb +++ b/app/views/bazaar/index.html.erb @@ -19,11 +19,11 @@ </div> <div> <%= f.label :quantity, "Quantity" %> - <%= f.number_field :quantity, required: true, min: 1, max: 2_000_000_000 %> + <%= f.number_field :quantity, required: true, size: 12, min: 1, max: 2_000_000_000 %> </div> <div> <%= f.label :price_each, "Price Each" %> - <%= f.number_field :price_each, required: true, min: 1, max: 2_000_000_000 %> + <%= f.number_field :price_each, required: true, size: 12, min: 1, max: 2_000_000_000 %> </div> <div> <%= f.label :buy_order, "Post as buy order" %> @@ -85,7 +85,7 @@ <td class="table-cell-padded"><%= bo.price_each %></td> <td class="table-cell-padded"> <%= form_with url: bazzar_accept_offer_path(id: bo.id) do |f| %> - <%= f.number_field :quantity, value: 1, min: 1, max: 2_000_000_000, required: true %> + <%= f.number_field :quantity, value: 1, size: 8, min: 1, max: 2_000_000_000, required: true %> <%= f.submit "Buy" %> <% end %> </td> @@ -117,7 +117,7 @@ <td class="table-cell-padded"><%= bo.price_each %></td> <td class="table-cell-padded"> <%= form_with url: bazzar_accept_offer_path(id: bo.id) do |f| %> - <%= f.number_field :quantity, value: 1, min: 1, max: 2_000_000_000, required: true %> + <%= f.number_field :quantity, value: 1, size: 8, min: 1, max: 2_000_000_000, required: true %> <%= f.submit "Sell" %> <% end %> </td> |