Skip to content

Instantly share code, notes, and snippets.

@Paxa
Forked from webmat/dashboards.rb
Created April 1, 2014 12:48
Show Gist options
  • Select an option

  • Save Paxa/9913290 to your computer and use it in GitHub Desktop.

Select an option

Save Paxa/9913290 to your computer and use it in GitHub Desktop.
ActiveAdmin.register Delayed::Job do
menu parent: 'Admin'
actions :index, :show, :edit, :delete
index do
column :id
column :priority
column :attempts
column :created_at
column :run_at
column :locked_by
column :locked_at
default_actions
end
form do |f|
f.inputs "Scheduling" do
f.input :priority
f.input :queue
f.input :run_at
end
f.inputs "Details" do
f.input :id, input_html: {disabled: true}
f.input :created_at, input_html: {disabled: true}
f.input :updated_at, input_html: {disabled: true}
f.input :handler, input_html: {disabled: true}
end
f.inputs "Diagnostics" do
f.input :attempts
f.input :failed_at, input_html: {disabled: true}
f.input :last_error, input_html: {disabled: true}
f.input :locked_at, input_html: {disabled: true}
f.input :locked_by, input_html: {disabled: true}
end
f.buttons
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment