Skip to content

Commit

Permalink
🧹 Furniture: use location rather when building new Furniture
Browse files Browse the repository at this point in the history
- Extracted from: #1083
- #74
- #709
  • Loading branch information
zspencer committed Mar 3, 2023
1 parent 5313039 commit 0a6212e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/furniture_placements/_new.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<fieldset id="new_furniture_placement">
<h3><%= t('rooms.place_furniture_heading') %></h3>
<%= form_with model: [furniture_placement.room.space, furniture_placement.room, furniture_placement] do | placement_form | %>
<%= form_with model: furniture_placement.location do | placement_form | %>
<%= placement_form.hidden_field :slot, value: furniture_placement.room.furniture_placements.count %>
<%= placement_form.select :furniture_kind, Furniture::REGISTRY.keys.map { |k| [k.to_s.titleize, k] } %>
<footer>
<%= placement_form.submit %>
</footer>
<%- end %>
</fieldset>
</fieldset>

0 comments on commit 0a6212e

Please sign in to comment.