Class: ContentProviders::InputNewActivityForm

Inherits:
BitCore::ContentProvider
  • Object
show all
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

Instance Method Details

#data_attributesObject



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_nameObject



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(options)
  options.view_context.render(
    template: "think_feel_do_engine/activities/input_new_activity_form",
    locals: {
      create_path: options.view_context.participant_data_path
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'app/models/content_providers/input_new_activity_form.rb', line 25

def show_nav_link?
  false
end