Sha256: 5592d49ff81d7a7746488ff1038f82b62f142871650b56b4aeb69f7fc00b41f7

Contents?: true

Size: 1.27 KB

Versions: 68

Compression:

Stored size: 1.27 KB

Contents

<div class="col-lg-6">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">
        General Patient Info
      </h3>
    </div>

    <div class="panel-body">
      <% if view_membership(@participant, @group) %>
        <p>
          <strong>Started on:</strong>
          <%= view_membership(@participant, @group).start_date.to_s(:user_date_with_day_of_week) %>
        </p>
        <p>
          <strong><%= study_length_in_weeks %> weeks from the start date is:</strong>
          <%= (view_membership(@participant, @group).start_date + study_length_in_weeks.weeks).to_s(:user_date_with_day_of_week) %>
        </p>
      <% end %>

      <p>
        <strong>Status:</strong>
        <% if view_membership(@participant, @group).end_date > Date.current %>
          <span class="label label-success full-size">Active</span>
          Currently in week <%= (view_membership(@participant, @group).day_in_study / 7.0).ceil %>
        <% else %>
          <span class="label label-warning full-size">Inactive</span>
          Study has been Completed
        <% end %>
      </p>

      <p>
        <strong>Lessons read this week:</strong>
        <%= view_membership(@participant, @group).lessons_read_for_week.count %>
      </p>

    </div>
  </div>
</div>

Version data entries

68 entries across 68 versions & 1 rubygems

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