Sha256: 43663f7deeac9d9c5503c4fbb3f7a5fb8fd7b36ee85899de478bd58c1d07c743

Contents?: true

Size: 1.15 KB

Versions: 44

Compression:

Stored size: 1.15 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">
  </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

44 entries across 44 versions & 1 rubygems

Version Path
think_feel_do_engine-3.17.2 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.17.1 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.17.0 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.16.3 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.16.2 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.16.1 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.7 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.16.0 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.6 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.5 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.4 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.3 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.2 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.1 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.15.0 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.14.9 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.14.8 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.14.7 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.14.6 app/views/think_feel_do_engine/emotions/_form.html.erb
think_feel_do_engine-3.14.5 app/views/think_feel_do_engine/emotions/_form.html.erb