mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-04-04 05:33:22 -04:00
Fixed associated attribute headers
This commit is contained in:
parent
3f850d61f1
commit
a626395648
@ -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…
x
Reference in New Issue
Block a user