Sha256: 10d6bca5709ab42cfa473891aef6bab2c98a20bc3f45fa5eae10cf7e9529ef84
Contents?: true
Size: 1.04 KB
Versions: 20
Compression:
Stored size: 1.04 KB
Contents
<% locked = yes_no.locked?(params, @answer_sheet, @presenter, current_person) %> <div id="<%= dom_id(yes_no) %>" class="choice_field" style="white-space: nowrap;"> <% css_class = "#{yes_no.css_class} " -%> <% yes_no.choices.each_with_index do |choice, num| -%> <% dom_id = dom_id(yes_no) + "_" + pretty_tag(choice[1]) css_class += yes_no.validation_class(@answer_sheet, @page) if num == 0 checked = yes_no.has_answer?(choice[1],@answer_sheet) -%> <div class="<% if Fe.bootstrap %>radio<% end %> field field_check yesno"> <% if Fe.bootstrap %><label class="choice horiz" for="<%= dom_id %>"><% end %> <%= radio_button_tag "answers[#{yes_no.id}]", choice[1], checked, id: dom_id, class: css_class, disabled: locked, readonly: locked %> <% if Fe.bootstrap %><%= choice[0] %><% end %> <% unless Fe.bootstrap %><label class="choice horiz" for="<%= dom_id %>"><%= choice[0] %></label><% end %> </div> <% end -%> <div class="clear"></div> </div>
Version data entries
20 entries across 15 versions & 1 rubygems