Sha256: c67457f3d321b60fd63d7e1b41498e17a2fb615e2eab909eb3b68d57987b166e

Contents?: true

Size: 799 Bytes

Versions: 1

Compression:

Stored size: 799 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_id: poll.id)
      = render_datatable(datatable, inline: true, simple: true)

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_polls-0.0.2 app/views/admin/polls/_form.html.haml