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

40 lines
652 B
Ruby
Raw Normal View History

2015-02-15 17:10:17 +01:00
ActiveAdmin.register Orga do
permit_params :kind_id, :name, :url, :city, :department, :region_id
2014-07-18 17:01:51 +02:00
index do
2015-03-17 23:33:20 +01:00
column :kind
2014-07-18 17:01:51 +02:00
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
2015-03-17 23:33:20 +01:00
row :kind
2014-07-18 17:01:51 +02:00
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
2015-03-17 23:33:20 +01:00
f.input :kind
2014-07-18 17:01:51 +02:00
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