Sha256: b2d64948731d81e59c5965f4c544fc25b22e5e9f35d1f56e37ca361b7f298924
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 Bytes
Contents
= render_wizard_sidebar(resource) do %h1 Ballot: #{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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_polls-0.0.2 | app/views/effective/ballots/vote.html.haml |
effective_polls-0.0.1 | app/views/effective/ballots/vote.html.haml |