2014-04-11 21:29:43 +01:00
|
|
|
ActiveAdmin.register FlashNotify do
|
|
|
|
|
|
|
|
menu parent: 'Misc'
|
|
|
|
|
|
|
|
index do
|
|
|
|
column :id
|
|
|
|
column(:body_en) do |fn|
|
|
|
|
fn.body_en.truncate(18)
|
|
|
|
end
|
|
|
|
column(:body_ru) do |fn|
|
|
|
|
fn.body_ru.truncate(18)
|
|
|
|
end
|
|
|
|
column :published
|
|
|
|
|
2014-09-12 09:10:32 +01:00
|
|
|
actions
|
2014-04-11 21:29:43 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
form do |f|
|
|
|
|
f.inputs do
|
|
|
|
f.input :body_en
|
|
|
|
f.input :body_ru
|
|
|
|
f.input :status, as: :select, collection: FlashNotify::STATUSES, include_blank: false
|
|
|
|
f.input :published
|
|
|
|
end
|
|
|
|
f.actions
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|