Class: ContentProviders::PastActivityForm
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::PastActivityForm
- Defined in:
- app/models/content_providers/past_activity_form.rb
Overview
Provides multiple forms for a Participant to enter past Activities.
Instance Method Summary collapse
- #data_attributes ⇒ Object
- #data_class_name ⇒ Object
- #render_current(options) ⇒ Object
- #show_nav_link? ⇒ Boolean
Instance Method Details
#data_attributes ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'app/models/content_providers/past_activity_form.rb', line 16 def data_attributes [ :start_time, :end_time, :activity_type_title, :actual_pleasure_intensity, :actual_accomplishment_intensity ] end |
#data_class_name ⇒ Object
26 27 28 |
# File 'app/models/content_providers/past_activity_form.rb', line 26 def data_class_name "Activity" end |
#render_current(options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/models/content_providers/past_activity_form.rb', line 4 def render_current() participant = .view_context.current_participant .view_context.render( template: "think_feel_do_engine/activities/past_activity_form", locals: { timestamps: (participant), activity: participant.activities.build, create_path: .view_context.participant_data_path } ) end |
#show_nav_link? ⇒ Boolean
30 31 32 |
# File 'app/models/content_providers/past_activity_form.rb', line 30 def show_nav_link? false end |