Sha256: 8198d252b852ba07cf895f63440eae5d4d1e0d621a76a7b0fca89f7aeabff17a

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

<%= form_for emotional_rating, url: create_path, method: "post", html: { role: "form", id: nil } do |f| %>
  <%= f.hidden_field(:participant_id) %>
  <div class="emotion-name-group form-group">
    <%= 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") %>
  </div>
  <div class="emotion-name-group form-group written-option">
    <%= f.label :name, "Emotion" %>
    <input class="form-control" id="emotional_rating_name" name="emotional_rating[name]" type="text", maxlength: 255 >
  </div>
  <div class="form-group">
    <%= f.label("Emotion Type") %>
    <%= f.select(:is_positive, [['positive', true], ['negative', false]], { prompt: "Select one..." }, class: "form-control") %>
  </div>
  <div class="form-group">
    <%= 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"
    )%>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
think_feel_do_engine-3.19.1 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.0 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.18.0 app/views/think_feel_do_engine/emotions/_form.html.erb