Add color to ratings

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent c4ebe12408
commit 058b512b7d
4 changed files with 13 additions and 5 deletions

View file

@ -12,11 +12,11 @@
<li>
<p><%= candidate.name %></p>
<p><%= candidate.description %></p>
<ol>
<ul>
<% settings.values.reverse.each do |v| %>
<input type="radio" name="<%= candidate.id %>" id="<%= candidate.id %>-<%= v[:id] %>" value="<%= v[:id] %>" <% if value == v[:id] %>checked<% end %>><label for="<%= candidate.id %>-<%= v[:id] %>"><%= v[:label] %></label>
<li><input type="radio" name="<%= candidate.id %>" id="<%= candidate.id %>-<%= v[:id] %>" value="<%= v[:id] %>" <% if value == v[:id] %>checked<% end %>><label for="<%= candidate.id %>-<%= v[:id] %>" class="value-<%= v[:id] %>"><%= v[:label] %></label></li>
<% end %>
</ol>
</ul>
</li>
<% end %>
</ul>