Permalink
Browse files

Customizing Airport admin

  • Loading branch information...
pmilanez committed Apr 11, 2012
1 parent 0432554 commit 84bc7517fa2ae8597a657db6dd0037898896e2e4
Showing with 23 additions and 0 deletions.
  1. +17 −0 app/admin/airports.rb
  2. +6 −0 app/assets/stylesheets/active_admin.css.scss
View
@@ -1,3 +1,20 @@
ActiveAdmin.register Airport do
+ config.clear_sidebar_sections!
+ index do
+ column :name
+ column "ICAO Code", :icaocode
+ default_actions
+ end
+
+ form do |f|
+ f.inputs "Airport Information" do
+ f.input :name, :label => "Aiport Name"
+ f.input :latitude, :label => "Latitude (decimal format)"
+ f.input :longitude, :label => "Longitude (decimal format)"
+ f.input :icaocode, :label => "ICAO Code"
+ end
+ f.buttons
+ end
+
end
@@ -4,3 +4,9 @@
// To customize the Active Admin interfaces, add your
// styles here:
+.index #active_admin_content #index_footer {
+ color: white; // Hides the 'Download text'. Pagination links are styled on their own
+ a {
+ display: none; // Hides the CSV .. links
+ }
+}

0 comments on commit 84bc751

Please sign in to comment.