From b3ec9a2b88e4cf3cf8b0cf303bed8db56a4b1085 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 1 Jan 2025 19:49:06 +0100 Subject: Updated scoring form. --- app/views/scores/_form.html.erb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'app/views/scores') 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 @@ <%= category.titlecase %> <% criteria.each do |criterium| %> <% current_score = existing_scores.find { |score| score.scoring_criterium_id == criterium.id } %> -

- <%= 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 %> -

+ <%= 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 %> +
<% end %> <% end %> -- cgit v1.2.3