Sha256: 669dfd62883ccf412c4669ec1560965820200d57c923904f197bc2da5644f7cd

Contents?: true

Size: 1.04 KB

Versions: 94

Compression:

Stored size: 1.04 KB

Contents

ActiveAdmin.register ::Feedback::Feedback, as: 'Feedback' do
  menu parent: 'Feedback', priority: 1

  permit_params :resolved

  index do
    column :id do |feedback|
      feedback.id.first(8)
    end
    column :sentiment
    column :resource
    column :owner
    column :ip
    column :comment
    column :code_language
    column :code_language_selected_whilst_on_page
    column :code_language_set_by_url
    column :created_at
    column :resolved
    actions
  end

  form do |_f|
    inputs 'Details' do
      input :resolved
    end
    actions
  end

  show do
    attributes_table do
      row :sentiment
      row :resource
      row :owner
      row :owner_type
      row :ip
      row :comment
      row :created_at
      row :updated_at
      row :code_language
      row :code_language_selected_whilst_on_page
      row :code_language_set_by_url
      row :resolved
      row :path
      row :steps do
        if feedback.config
          render 'steps', { feedback: feedback }
        end
      end
    end

    active_admin_comments
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.15 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.14 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.13 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.12 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.11 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.10 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.9 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.8 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.7 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.6 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.5 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.4 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.3 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.2 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.1 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.5.0 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.4.9 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.4.8 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb
station-0.4.7 lib/nexmo_developer/app/admin/admin_feedback_feedback.rb