Sha256: ff6f004eb37da3fc6838f8dd0c5fcac5f9503402948b1c8e6e6e5073e961b4ea

Contents?: true

Size: 1.41 KB

Versions: 23

Compression:

Stored size: 1.41 KB

Contents

<div class="row">
  <div class="btn-group-wrap">
    <div class="btn-group" data-toggle="buttons">
      <label class="btn btn-default active interval">
        <input type="radio" value="7" checked="">7 Day
      </label>
      <label class="btn btn-default interval">
        <input type="radio" value="28">28 day
      </label>
    </div>
  </div>
  <nav>
    <ul class="pager">
      <li><a class="offset" id="previous" data-value="1" href="#"><span aria-hidden="true">&larr;</span> Previous Period</a></li>
      <li><a class="offset" id="next" data-value="-1" href="#">Next Period <span aria-hidden="true">&rarr;</span></a></li>
     </ul>
  </nav>
  <div class="text-center" id="date-range">
    <strong>Date</strong>
  </div>
</div>
<% if phq_features? %>
  <div id="phq"></div>
<% end %>
<div id="mood"></div>
<div id="emotions"></div>
<script>
  // starting graph parameters assume 7 day view ending in today
  var activationDate = activation("<%= patient.created_at %>")
  var graphParameters = new Graph(
        <%= sanitize(MoodAndEmotionVisualizationService.new(patient).mood_rating_daily_averages.to_json) %>,
        <%= sanitize(MoodAndEmotionVisualizationService.new(patient).emotional_rating_daily_averages.to_json) %>,
        <%= phq_features? ? sanitize(patient.phq_scores.to_json) : "null" %>,
        $("div#viz-container")
      );

  sc.drawGraphs(graphParameters);
  sc.filterEmotionMoodViz(graphParameters);
</script>

Version data entries

23 entries across 23 versions & 1 rubygems

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