%= form_with url: form_url, method: form_method, local: true do |f| %> <% ScoringCriterium.grouped_by_category.each do |category, criteria| %>
<%= number_field_tag "scores[#{criterium.id}][value]", current_score&.value, in: 1..5, required: true, placeholder: "Score (1-5)" %> <%= label_tag "scores[#{criterium.id}][value]", criterium.name.capitalize %>