Sha256: 95d2f3eedd905ebb57b5dbd79d2f2cffc56accef1074dda0d3a869d5f8b119df
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
<% choices = rating.choices(session[:locale]) %> <% dom_id = "" %> <div id="<%= dom_id(rating) %>"> <table cellspacing="0" class="rating"> <tr> <% css_class = ' ' -%> <% choices.each_with_index do |choice, num| -%> <% dom_id = dom_id(rating) + "_" + pretty_tag(choice[1]) last_choice = (num == choices.length - 1) css_class += rating.validation_class(@answer_sheet) if last_choice checked = rating.has_answer?(choice[1],@answer_sheet) -%> <td><%= radio_button_tag "answers[#{rating.id}]", choice[1], checked, :id => dom_id, :class => css_class, :disabled => @answer_sheet.frozen?&&!@presenter.try(:reference?), :readonly => @answer_sheet.frozen?&&!@presenter.try(:reference?) %></td> <% end -%> </tr> <tr> <% choices.each do |choice| %> <td><%= choice[0] %></td> <% end -%> </tr> </table> <div id="advice-validate-rating-<%= dom_id %>" class="validation-advice" style="display: none;"><%= _('Please select one of the above options.') %></div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fe-1.0.0 | app/views/fe/questions/fe/_rating.html.erb |