Sha256: 837573461649c988b99094dec0f1f7e08efc8cdd8b72630ac2c7fd0c7f641941

Contents?: true

Size: 1.17 KB

Versions: 21

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

21 entries across 21 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/emotions/_form.html.erb