Sha256: ea56db6258d91ee017676a3bda02ed509c094a92d20f919b8818813998bef978

Contents?: true

Size: 987 Bytes

Versions: 3

Compression:

Stored size: 987 Bytes

Contents

-# In progress ballot
- ballot = Effective::Ballot.in_progress.where(user: current_user).first
- datatable = EffectiveResources.best('EffectivePollsAvailablePollsDatatable').new(self, namespace: :effective)

- if ballot.present?
  %h2 In Progress #{et(Effective::Ballot)}

  %p Your submission for #{ballot.poll} is incomplete

  %p
    Please
    = link_to("Continue #{ballot.poll}", effective_polls.poll_ballot_build_path(ballot.poll, ballot, ballot.next_step), 'data-turbolinks' => false, class: 'btn btn-primary')
    or you can
    = link_to('Abandon', effective_polls.poll_ballot_path(ballot.poll, ballot), 'data-confirm': "Really delete #{ballot}?", 'data-method': :delete, class: 'btn btn-danger')
    to begin again.

  %hr

%h2 #{polls_name_label}

- if datatable.present?
  %p The following #{etsd(Effective::Poll)} are available:
  = render_datatable(datatable, simple: true)
- else
  %p There are no available #{etsd(Effective::Poll)}. When there are, we'll show them here.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_polls-0.5.0 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.4.1 app/views/effective/polls/_dashboard.html.haml
effective_polls-0.4.0 app/views/effective/polls/_dashboard.html.haml