Skip to content

Commit

Permalink
Fix country and state dropdowns in the historical facts form
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Nov 28, 2024
1 parent 42c92a1 commit 258db68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/historical_facts/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
<div class="row">
<div class="col-md-4 mb-3">
<%= f.label :country_code, "Country", class: "mb-1" %>
<%= carmen_country_select :fact, :country_code %>
<%= carmen_country_select :historical_fact, :country_code %>
</div>
<div class="col-md-3 mb-3">
<%= f.label :state_code, "State", class: "mb-1" %><br/>
<%= render partial: "carmen/subregion_select",
locals: { model: :fact, parent_region: f.object.country_code } %>
locals: { model: :historical_fact, parent_region: f.object.country_code } %>
</div>
<div class="col-md-3 mb-3">
<%= f.label :city, class: "mb-1" %>
Expand Down

0 comments on commit 258db68

Please sign in to comment.