Changing bike_status to bike_purporse

This commit is contained in:
Jason Denney
2013-09-02 14:02:18 -04:00
parent 611b1b1151
commit cecb3b1a32
12 changed files with 50 additions and 43 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ class Bikes < Netzke::Basepack::Grid
{ :name => :wheel_size, :text => 'Wheel Size (in)'},
:value,
{ :id => :bike_condition__condition, :name => :bike_condition__condition, :text => 'Condition'},
{ :id => :bike_status__status, :name => :bike_status__status, :text => 'Status'},
{ :id => :bike_purpose__purpose, :name => :bike_purpose__purpose, :text => 'Purpose'},
{ :name => :owner, :getter => lambda { |rec|
user = rec.owner
user.nil? ? "" : "#{user.first_name} #{user.last_name}"
@@ -52,7 +52,7 @@ class Bikes < Netzke::Basepack::Grid
{ :name => :wheel_size, :field_label => 'Wheel Size (in)'},
{ :name => :value, :field_label => 'Value'},
{ :name => :bike_condition__condition, :field_label => 'Condition'},
{ :name => :bike_status__status, :field_label => 'Status'}
{ :name => :bike_purpose__purpose, :field_label => 'Purpose'}
]
end
#override with nil to remove actions
@@ -9,7 +9,7 @@
"bike_model__model",
"bike_style__style",
"bike_condition__condition",
"bike_status__status"]
"bike_purpose__purpose"]
Ext.each(min_char_columns, function(column, index) {
Ext.ComponentManager.get(column).editor.minChars = 1;
});
@@ -5,7 +5,7 @@
//due to Netzke bug, :min_chars attribute doesn't work
var min_char_columns = [
"user_action__status"]
"user_action__purpose"]
Ext.each(min_char_columns, function(column, index) {
Ext.ComponentManager.get(column).editor.minChars = 1;
});