Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Customizing Airport admin

  • Loading branch information...
commit 84bc7517fa2ae8597a657db6dd0037898896e2e4 1 parent 0432554
@pmilanez authored
View
17 app/admin/airports.rb
@@ -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
View
6 app/assets/stylesheets/active_admin.css.scss
@@ -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
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.