%= form_for emotional_rating, url: create_path, method: "post", html: { role: "form", id: nil } do |f| %>
<%= f.hidden_field(:participant_id) %>
<%= f.label(:emotion_id, "Emotion") %>
<%= f.select(:emotion_id, current_participant.populate_emotions.order(:name).map{ |e| [e.name, e.id] }, { include_blank: "Select Emotion or Write Emotion Below" }, class: "form-control") %>
<%= f.label :name, "Emotion" %>
<%= f.label("Emotion Type") %>
<%= f.select(:is_positive, [['positive', true], ['negative', false]], { prompt: "Select one..." }, class: "form-control") %>
<%= render(
"think_feel_do_engine/shared/rating_selector",
form: f,
name: "rating",
label: "Rate Intensity",
prefix: "emotional_rating",
object: emotional_rating,
min_text: "None",
mid_text: "Some",
max_text: "A lot"
)%>
<% end %>