Sha256: cfdabea275a847b2ee9ca8756905ea8543d3866ff459721255969845ef011728

Contents?: true

Size: 716 Bytes

Versions: 9

Compression:

Stored size: 716 Bytes

Contents

= render_wizard_sidebar(resource) do
  %h1= resource.poll

  - if resource.poll.all_steps_content.present?
    .mb-2= resource.poll.all_steps_content

  - if resource.poll.vote_content.present?
    .mb-2= resource.poll.vote_content

  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
    = f.hidden_field :current_step

    - resource.poll.poll_questions.deep.all.each_with_index do |poll_question, index|
      - ballot_response = resource.ballot_response(poll_question)

      = f.fields_for :ballot_responses, ballot_response do |fbr|
        = render('/effective/ballot_responses/fields', f: fbr, poll_question: poll_question)

    = f.submit 'Save and Continue', center: true

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_polls-0.3.0 app/views/effective/ballots/vote.html.haml
effective_polls-0.2.0 app/views/effective/ballots/vote.html.haml
effective_polls-0.1.6 app/views/effective/ballots/vote.html.haml
effective_polls-0.1.5 app/views/effective/ballots/vote.html.haml
effective_polls-0.1.4 app/views/effective/ballots/vote.html.haml
effective_polls-0.1.3 app/views/effective/ballots/vote.html.haml
effective_polls-0.1.2 app/views/effective/ballots/vote.html.haml
effective_polls-0.1.1 app/views/effective/ballots/vote.html.haml
effective_polls-0.1.0 app/views/effective/ballots/vote.html.haml