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