|
|
@ -17,7 +17,7 @@ ActiveAdmin.register Organisation do |
|
|
|
selectable_column |
|
|
|
selectable_column |
|
|
|
id_column |
|
|
|
id_column |
|
|
|
column :name |
|
|
|
column :name |
|
|
|
column "Org type", :providertype |
|
|
|
column "Org type", :provider_type |
|
|
|
column "Address Line 1", :address_line1 |
|
|
|
column "Address Line 1", :address_line1 |
|
|
|
column "Address Line 2", :address_line2 |
|
|
|
column "Address Line 2", :address_line2 |
|
|
|
column :postcode |
|
|
|
column :postcode |
|
|
@ -28,4 +28,8 @@ ActiveAdmin.register Organisation do |
|
|
|
column :managing_agents |
|
|
|
column :managing_agents |
|
|
|
actions |
|
|
|
actions |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
before_save do |org| |
|
|
|
|
|
|
|
org.provider_type = params[:organisation][:provider_type] |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|