Sha256: eb769da9925b75bb8ff65221153594506e0c38e66314b1a2f350d01eb9149632

Contents?: true

Size: 1.29 KB

Versions: 27

Compression:

Stored size: 1.29 KB

Contents

<h2>Rate your Emotions</h2>

<div class="alert alert-info">
  You just rated your mood as a <%= current_participant.moods.last.rating %> (<%= current_participant.moods.last.rating_value %>)
</div>

<strong>While tracking your mood, you might also want to track other emotions.  We've included a few suggestions based on some emotions other people have tracked in the past, but feel free to track anything that you think would be helpful to you.</strong>

<div id="forms-container">
  <%= render "think_feel_do_engine/emotions/form", create_path: create_path, emotional_rating: emotional_rating %>
</div>

<div class="btn-toolbar">
  <button class="btn btn-default" id="add-forms" type="button"><i class="fa fa-plus"></i> Add Emotion</button>
</div>

<div class="btn-toolbar">
  <%= link_to t(:skip), navigator_next_content_path, class: "btn btn-warning" %>
  <%= submit_tag t(:next), class: 'btn btn-primary', id: "submit-forms" %>
</div>

<script>
  var afterSubmitPath, partial;

  afterSubmitPath = "<%= navigator_next_content_url %>";

  partial = "<%= j render(partial: 'think_feel_do_engine/emotions/form', locals: { create_path: create_path, emotional_rating: emotional_rating }) %>";

  $(document).on("page:change", sc.rateEmotions("#forms-container form.new_emotional_rating", afterSubmitPath, partial));
</script>

Version data entries

27 entries across 27 versions & 1 rubygems

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