Sha256: 6aa6c6f1430a62e3eb79c451713043cbdfa2f98cd509f885682b984df26ac2b5

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

.e9-poll{:"data-votes" => poll.votes}
  - if poll.options.header_text.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.7 app/views/e9_polls/polls/_poll.html.haml