Skip to content

Commit

Permalink
Fix poll preview
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Sep 29, 2011
1 parent 0beaaca commit 13323f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/polls/_answers_current.html.haml
@@ -1,6 +1,7 @@
= form_tag "/sondages/#{poll.new_record? ? 0 : poll.to_param}/vote", :id => "#{dom_id poll}#{id_suffix}" do
%ul.poll.current
= list_of poll.answers do |answer|
= radio_button_tag :position, answer.position, false, :id => "position_#{answer.position}#{id_suffix}"
= label_tag "position_#{answer.position}#{id_suffix}", answer.answer
- poll.answers.each_with_index do |answer,index|
%li
= radio_button_tag :position, answer.position, false, :id => "position_#{index}#{id_suffix}"
= label_tag "position_#{index}#{id_suffix}", answer.answer
= submit_tag "Voter" if poll.published?

0 comments on commit 13323f3

Please sign in to comment.