Fix missing "for" attribute in officer assignment label

Since this attribute was missing, the label wasn't correctly associated
with its field.
This commit is contained in:
Javi Martín
2024-10-12 17:49:51 +02:00
parent 3b7948a139
commit b68047f265
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<%= form_tag(officing_poll_results_path(@poll), { id: "officer_assignment_form" }) do %>
<div class="row">
<div class="small-12 medium-6 column">
<label><%= t("officing.results.new.booth") %></label>
<%= label_tag :officer_assignment_id, t("officing.results.new.booth") %>
<%= select_tag :officer_assignment_id,
booths_for_officer_select_options(@officer_assignments),
{ prompt: t("officing.results.new.select_booth") } %>