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