Sha256: ae0c5e71b92ccbb8a480863be7d405b94662c4bc2e60410df1d8224667b4e435
Contents?: true
Size: 986 Bytes
Versions: 2
Compression:
Stored size: 986 Bytes
Contents
<% dom_id = "" %> <div id="<%= dom_id(rating) %>"> <table cellspacing="0" class="rating"> <tr> <% css_class = ' ' -%> <% rating.choices.each_with_index do |choice, num| -%> <% dom_id = dom_id(rating) + "_" + pretty_tag(choice[1]) last_choice = (num == rating.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.reference?, :readonly => @answer_sheet.frozen?&&!@presenter.reference? %></td> <% end -%> </tr> <tr> <% rating.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fe-0.0.4 | app/views/fe/questions/fe/_rating.html.erb |
fe-0.0.3 | app/views/fe/questions/_rating.html.erb |