Sha256: 3c7bf33fda6e90db3f52e9b6454747bc7038833e351fa0efd563d59634414016

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 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.submit_content.present?
    .mb-2= resource.poll.submit_content

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

    = render(resource)

    = f.submit(center: true) do
      = link_to 'Change Ballot', wizard_path(:vote), class: 'btn btn-secondary'
      = f.save 'Submit Ballot'

Version data entries

9 entries across 9 versions & 1 rubygems

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