%
parameter_prefix ||= "activity"
%>
<%= form_for current_participant.activities.build, url: create_path, method: "post", html: { role: "form", class: "activity_form", id: "activity-form"} do |f| %>
<% if past_activities.count > 0 %>
<% past_activities.each do |activity| %>
<% end %>
<% end %>
<% index = 0 %>
<%= hidden_field_tag "#{ parameter_prefix }[start_time]", "", class: "start_time_#{ index }" %>
<%= render(
"think_feel_do_engine/activities/intensity_selector",
form: f,
name: :predicted_pleasure_intensity,
label: "How much pleasure do you expect to get from doing this?",
activity: current_participant.activities.build,
min_text: "None",
mid_text: "Some",
max_text: "A Lot",
suggested: true,
include_blank: true,
parameter_prefix: parameter_prefix
) %>
<%= render(
"think_feel_do_engine/activities/intensity_selector",
form: f,
name: :predicted_accomplishment_intensity,
label: "How much accomplishment do you expect to get from doing this?",
activity: current_participant.activities.build,
min_text: "None",
mid_text: "Some",
max_text: "A Lot",
suggested: true,
include_blank: true,
parameter_prefix: parameter_prefix
) %>
<% if current_participant.active_group.arm.social? %>
<% end %>
<%= submit_tag t(:next), class: "btn btn-primary", id: "submit_activities" %>
<%= link_to t(:skip), navigator_next_content_path, class: "btn btn-warning" %>
<% end # form_for %>