From 75f4a7980b8406b8918c03ad27bb25780deb74ed Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sun, 3 Nov 2013 08:45:10 -0500 Subject: [PATCH] Need end date to edit start date, fix type --- app/components/bike_logs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/bike_logs.rb b/app/components/bike_logs.rb index a616fe0..15426c7 100644 --- a/app/components/bike_logs.rb +++ b/app/components/bike_logs.rb @@ -19,7 +19,7 @@ class BikeLogs < Netzke::Basepack::Grid c.columns = [ { :name => :start_date, :format => "g:ia - D, M j - Y", :width => 165, :default_value => Time.now.to_formatted_s(:db) }, - { :name => :end_date, :hidden => true, :default_value => Time.now.to_formatted_s(:db) }, + { :name => :end_date, :format => "g:ia - D, M j - Y", :width => 165, :default_value => Time.now.to_formatted_s(:db) }, :description, { :name => :bike_action__action, :text => 'Action', :default_value => ::ActsAsLoggable::BikeAction.first.id}, { :name => :logged_by, :getter => lambda{ |rec| @@ -45,7 +45,7 @@ class BikeLogs < Netzke::Basepack::Grid def default_fields_for_forms [ - { :name => :start_date, :xtype => 'xdateampmtime'}, + { :name => :start_date}, { :name => :description}, #had to hack acts_as_loggable/log.rb to get this to work { :name => :bike_action__action, :field_label => 'Action', :min_chars => 1 }