Sha256: 1281db837ff0a7d2122b4cc60498e422a290ffd41a64bf7eba3253f6ffe88c55

Contents?: true

Size: 914 Bytes

Versions: 16

Compression:

Stored size: 914 Bytes

Contents

= tabs do
  = tab 'Poll' do
    = render 'admin/polls/form_poll', poll: poll

  - if poll.persisted?
    = tab 'Content' do
      = render 'admin/polls/form_content', poll: poll

    = tab 'Questions' do
      - datatable = Admin::EffectivePollQuestionsDatatable.new(poll: poll)
      = render_datatable(datatable, inline: true, simple: true)

    = tab 'Notifications' do
      %p
        The following email notifications will be sent to
        = pluralize(poll.users.count, 'user')
        in the audience.

      %p 
        The url for this #{et(poll)} is:
        - url = effective_polls.poll_url(poll)
        = link_to(url, url, target: '_blank')

      - datatable = Admin::EffectivePollNotificationsDatatable.new(poll: poll)
      = render_datatable(datatable, inline: true, simple: true)

    - if poll.respond_to?(:logs_datatable)
      = tab 'Logs' do
        = render_datatable(poll.logs_datatable)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
effective_polls-0.7.3 app/views/admin/polls/_form.html.haml
effective_polls-0.7.2 app/views/admin/polls/_form.html.haml
effective_polls-0.7.1 app/views/admin/polls/_form.html.haml
effective_polls-0.7.0 app/views/admin/polls/_form.html.haml
effective_polls-0.6.2 app/views/admin/polls/_form.html.haml
effective_polls-0.6.1 app/views/admin/polls/_form.html.haml
effective_polls-0.6.0 app/views/admin/polls/_form.html.haml
effective_polls-0.5.6 app/views/admin/polls/_form.html.haml
effective_polls-0.5.5 app/views/admin/polls/_form.html.haml
effective_polls-0.5.4 app/views/admin/polls/_form.html.haml
effective_polls-0.5.3 app/views/admin/polls/_form.html.haml
effective_polls-0.5.2 app/views/admin/polls/_form.html.haml
effective_polls-0.5.1 app/views/admin/polls/_form.html.haml
effective_polls-0.5.0 app/views/admin/polls/_form.html.haml
effective_polls-0.4.1 app/views/admin/polls/_form.html.haml
effective_polls-0.4.0 app/views/admin/polls/_form.html.haml