agenda-libre-ruby/app/admin/lug.rb

37 lines
585 B
Ruby
Raw Normal View History

ActiveAdmin.register Lug do
permit_params :name, :url, :city, :department, :region
2014-07-18 17:01:51 +02:00
index do
column :name
column :url
column :city
column :department
column :region
2014-07-18 17:01:51 +02:00
actions
end
show do |l|
attributes_table do
row :name
row :url do
link_to l.url, l.url
end
row :city
2014-07-18 17:01:51 +02:00
row :department
row :region
2014-07-18 17:01:51 +02:00
end
active_admin_comments
end
form do |f|
f.inputs do
f.input :name
f.input :url
f.input :city
f.input :department
f.input :region
2014-07-18 17:01:51 +02:00
end
f.actions
end
end