Sha256: 350363fc89a7ce5284707d984955e6674fcc2bcc79113e7e544611ea405ad41c

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

.e9-poll{:"data-votes" => poll.votes}
  - if poll.options.header.present?
    .poll-header
      = poll.options.header_text

  .poll-question
    = poll.question
  .poll-answers
    - if poll_answered?(poll)
      = render(:partial => 'e9_polls/polls/results_inner', :locals => { :poll => poll })

    - else
      = form_for poll, :url => answer_poll_path(poll) do |f|
        = render(:partial => PollAnswer.model_name.partial_path, :collection => poll.poll_answers, :locals => { :f => f })
        .actions
          = f.submit t(:submit_answer, :scope => :e9_polls)

      = poll_results_link(poll)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
e9_polls-1.0.6 app/views/e9_polls/polls/_poll.html.haml