diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 19:49:06 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 19:49:06 +0100 |
commit | b3ec9a2b88e4cf3cf8b0cf303bed8db56a4b1085 (patch) | |
tree | 08728359cadead3d50706d87483a298590e361f7 /app/views | |
parent | 4fc8731b50c4c6daca4e5404c174f16a34799309 (diff) |
Updated scoring form.
Diffstat (limited to 'app/views')
-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 %> |