This could be the case when JavaScript is disabled. Note that, in `Poll/WebVote` we're calling `given_answers` inside a transaction. Putting this code before the transaction resulted in a test failing sometimes, probably because of a bug that might be possible to reproduce by doing simultaneous requests.
24 lines
631 B
Plaintext
24 lines
631 B
Plaintext
<fieldset <%= fieldset_attributes %>>
|
|
<legend><%= question.title %></legend>
|
|
|
|
<% if multiple_choice? %>
|
|
<%= multiple_choice_help_text %>
|
|
|
|
<% question.question_options.each do |option| %>
|
|
<%= multiple_choice_field(option) %>
|
|
<% end %>
|
|
<% else %>
|
|
<% question.question_options.each do |option| %>
|
|
<%= single_choice_field(option) %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<% if question.options_with_read_more? %>
|
|
<div>
|
|
<p><%= t("poll_questions.read_more_about") %></p>
|
|
<p><%= options_read_more_links %></p>
|
|
</div>
|
|
<% end %>
|
|
<%= form.error_for(:"question_#{question.id}") %>
|
|
</fieldset>
|