summaryrefslogtreecommitdiff
path: root/app/views/scores
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-01-01 19:49:06 +0100
committerMarius Peter <marius.peter@tutanota.com>2025-01-01 19:49:06 +0100
commitb3ec9a2b88e4cf3cf8b0cf303bed8db56a4b1085 (patch)
tree08728359cadead3d50706d87483a298590e361f7 /app/views/scores
parent4fc8731b50c4c6daca4e5404c174f16a34799309 (diff)
Updated scoring form.
Diffstat (limited to 'app/views/scores')
-rw-r--r--app/views/scores/_form.html.erb19
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 %>
Copyright 2019--2025 Marius PETER