ActiveAdmin.register PackageType do
	menu :priority => 4
	permit_params :name, :description, :annual_cost

	index do
    selectable_column
   
    column :name
    column :description
    column "Annual Cost" do |c|
      "£#{c.annual_cost_pounds}"
    end
    column :created_at
    actions
  end

	show do |ad|
    attributes_table do
     
      	row "Name" do
      		ad.name
      	end

      	row "Description" do
      		ad.description
      	end

      	row "Annual Cost" do
      		"£#{ad.annual_cost_pounds}"
      	end
      
    end
    active_admin_comments
  end

end