Sha256: f9481162030e2b2481b6ced941d03f890b34f245521eeb531d9afb0a6f58e012

Contents?: true

Size: 823 Bytes

Versions: 1

Compression:

Stored size: 823 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.4 app/views/fe/questions/fe/_yes_no_field.erb