Sha256: 5c9177bc68d6f3bc44cc45da0ef98ece34e66d45a7135dc9e2cd27e528ac7792

Contents?: true

Size: 822 Bytes

Versions: 1

Compression:

Stored size: 822 Bytes

Contents

<div id="<%= dom_id(yes_no) %>" class="choice_field" style="white-space: nowrap;">
  <% 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) if num == 0
       checked = yes_no.has_answer?(choice[1],@answer_sheet) -%>
    <div class="field field_check yesno">
      <%= radio_button_tag "answers[#{yes_no.id}]", choice[1], checked, 
            :id => dom_id, 
            :class => css_class,
            :disabled => @answer_sheet.frozen?&&!@presenter.reference?,
            :readonly => @answer_sheet.frozen?&&!@presenter.reference? %>
      <label class="choice horiz" for="<%= dom_id %>"><%= choice[0] %></label>
    </div>
  <% end -%>
  <div class="clear"></div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-0.0.3 app/views/fe/questions/_yes_no_field.erb