diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/scores/_form.html.erb | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/app/views/scores/_form.html.erb b/app/views/scores/_form.html.erb index e8610c6..f60efa3 100644 --- a/app/views/scores/_form.html.erb +++ b/app/views/scores/_form.html.erb @@ -4,16 +4,15 @@ <legend><%= category.titlecase %></legend> <% criteria.each do |criterium| %> <% current_score = existing_scores.find { |score| score.scoring_criterium_id == criterium.id } %> - <p> - <%= number_field_tag "scores[#{criterium.id}][value]", - current_score&.value, - in: 1..5, - required: true, - placeholder: "Score (1-5)", - size: 10 %> - <%= label_tag "scores[#{criterium.id}][value]", - criterium.name.capitalize %> - </p> + <%= number_field_tag "scores[#{criterium.id}][value]", + current_score&.value, + in: 1..5, + required: true, + placeholder: "Score (1-5)", + size: 10 %> + <%= label_tag "scores[#{criterium.id}][value]", + criterium.name.capitalize %> + <br /> <% end %> </fieldset> <% end %> |