Sha256: c3e3aa69377e690a4eaf440fa899dfac6feec825dafaabf42de827bdc252c90e

Contents?: true

Size: 796 Bytes

Versions: 9

Compression:

Stored size: 796 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 notifications will be sent to
        = 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

9 entries across 9 versions & 1 rubygems

Version Path
effective_polls-0.3.0 app/views/admin/polls/_form.html.haml
effective_polls-0.2.0 app/views/admin/polls/_form.html.haml
effective_polls-0.1.6 app/views/admin/polls/_form.html.haml
effective_polls-0.1.5 app/views/admin/polls/_form.html.haml
effective_polls-0.1.4 app/views/admin/polls/_form.html.haml
effective_polls-0.1.3 app/views/admin/polls/_form.html.haml
effective_polls-0.1.2 app/views/admin/polls/_form.html.haml
effective_polls-0.1.1 app/views/admin/polls/_form.html.haml
effective_polls-0.1.0 app/views/admin/polls/_form.html.haml