summaryrefslogtreecommitdiff
path: root/app/views/characters
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-31 18:41:28 -0400
committerDavid Gay <david@davidgay.org>2021-05-31 18:41:28 -0400
commit751ff05874d0e97cbdfc2f16f45f72f5ab6d165b (patch)
tree407aa889ce05a93a92ca31896e8f2682ed0376ba /app/views/characters
parent3b7fe3bbfdb09b4f8040e2c51aa18f31ff0b2a56 (diff)
Allow choosing how many items you'd like to craft at hearth amenities
Diffstat (limited to 'app/views/characters')
-rw-r--r--app/views/characters/hearth/index.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/characters/hearth/index.html.erb b/app/views/characters/hearth/index.html.erb
index 20b6fc0..c058007 100644
--- a/app/views/characters/hearth/index.html.erb
+++ b/app/views/characters/hearth/index.html.erb
@@ -17,6 +17,7 @@
<% if @amenity_activities[ha.gid.to_sym] %>
<%= form_with url: start_activity_path, method: :post do |f| %>
<%= f.select :id, @amenity_activities[ha.gid.to_sym].sort_by { |a| a.name }.map { |a| [a.name, a.id] } %>
+ <%= f.number_field :actions, value: 1, size: 5, min: 1, max: 2_000_000_000 %>
<%= f.submit "Go" %>
<% end %>
<% end %>
@@ -30,7 +31,7 @@
<div class="my-3">
<%= form_with url: start_activity_path do |f| %>
<%= f.hidden_field :id, value: construct_activity.id %>
- <%= f.hidden_field :queued_actions, value: 0 %>
+ <%= f.hidden_field :actions, value: 1 %>
<%= f.submit construct_activity.name %>
<% end %>
<div class="text-sm">(costs <%= construct_activity.costs.join(", ")%>)</div>
@@ -44,7 +45,7 @@
<% construct_activity = foundation.construct_activity(1) %>
<%= form_with url: start_activity_path do |f| %>
<%= f.hidden_field :id, value: construct_activity.id %>
- <%= f.hidden_field :queued_actions, value: 0 %>
+ <%= f.hidden_field :actions, value: 1 %>
<%= f.submit construct_activity.name %>
<% end %>
(costs <%= construct_activity.costs.join(", ")%>)