Browse Source

Need end date to edit start date, fix type

topic-sass
Jason Denney 11 years ago
parent
commit
75f4a7980b
  1. 4
      app/components/bike_logs.rb

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

Loading…
Cancel
Save