Sha256: a29f2ad8f1c0eda0a7077c9f037d82f877dcee41d2c36580a6f952f79b58ccf1

Contents?: true

Size: 1.29 KB

Versions: 32

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">
  <%= submit_tag t(:next), class: 'btn btn-primary', id: "submit-forms" %>
  <%= link_to 'Skip', navigator_next_content_path, class: 'btn btn-warning' %>
</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

32 entries across 32 versions & 1 rubygems

Version Path
think_feel_do_engine-3.15.2 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.15.1 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.15.0 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.9 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.8 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.7 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.6 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.5 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.4 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.3 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.2 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.1 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.14.0 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.13.1 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.13.0 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.12.9 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.12.8 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.12.7 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.12.6 app/views/think_feel_do_engine/emotions/new_current.html.erb
think_feel_do_engine-3.12.5 app/views/think_feel_do_engine/emotions/new_current.html.erb