Browse Source

Fixed associated attribute headers

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
a626395648
  1. 10
      app/components/bikes.rb

10
app/components/bikes.rb

@ -5,8 +5,8 @@ class Bikes < Netzke::Basepack::Grid
c.columns = [ c.columns = [
:serial_number, :serial_number,
{ :name => :bike_brand__brand }, { :name => :bike_brand__brand, :text => 'Brand' },
{ :name => :bike_model__model, { :name => :bike_model__model, :text => 'Model',
:scope => lambda { |rel| :scope => lambda { |rel|
if session[:selected_bike_brand_id] if session[:selected_bike_brand_id]
rel.where(:bike_brand_id => session[:selected_bike_brand_id]) rel.where(:bike_brand_id => session[:selected_bike_brand_id])
@ -16,13 +16,13 @@ class Bikes < Netzke::Basepack::Grid
} }
}, },
:color, :color,
{ :name => :bike_style__style }, { :name => :bike_style__style, :text => 'Style' },
:seat_tube_height, :seat_tube_height,
:top_tube_length, :top_tube_length,
:wheel_size, :wheel_size,
:value, :value,
{ :name => :bike_condition__condition}, { :name => :bike_condition__condition, :text => 'Condition'},
{ :name => :bike_status__status} { :name => :bike_status__status, :text => 'Status'}
] ]
end end

Loading…
Cancel
Save