Class: ContentProviders::InputNewActivityForm
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::InputNewActivityForm
- Defined in:
- app/models/content_providers/input_new_activity_form.rb
Overview
Provides a form for a Participant to plan a new Activity.
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
14 15 16 17 18 19 |
# File 'app/models/content_providers/input_new_activity_form.rb', line 14 def data_attributes [ "1" => [:activity_type_title, :predicted_accomplishment_intensity], "0" => [:activity_type_title, :predicted_pleasure_intensity] ] end |
#data_class_name ⇒ Object
21 22 23 |
# File 'app/models/content_providers/input_new_activity_form.rb', line 21 def data_class_name "UnplannedActivities" end |
#render_current(options) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/models/content_providers/input_new_activity_form.rb', line 5 def render_current() .view_context.render( template: "think_feel_do_engine/activities/input_new_activity_form", locals: { create_path: .view_context.participant_data_path } ) end |
#show_nav_link? ⇒ Boolean
25 26 27 |
# File 'app/models/content_providers/input_new_activity_form.rb', line 25 def show_nav_link? false end |