1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-03-11 13:43:23 -04:00

Need end date to edit start date, fix type

This commit is contained in:
Jason Denney 2013-11-03 08:45:10 -05:00
parent 16cda6aa86
commit 75f4a7980b

View File

@ -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 }