Sha256: b78f09d7cb6548a2d4d238bad299a2d5eaf6ce503cb418241df73479cfa2e753

Contents?: true

Size: 1.72 KB

Versions: 68

Compression:

Stored size: 1.72 KB

Contents

<h2>PHQ assessments for <%= @participant.study_id %></h2>

<table class="table">
  <thead>
    <tr>
      <th>Release date</th>
      <th>Q1</th>
      <th>Q2</th>
      <th>Q3</th>
      <th>Q4</th>
      <th>Q5</th>
      <th>Q6</th>
      <th>Q7</th>
      <th>Q8</th>
      <th>Q9</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @phq_assessments.each do |phq| %>
      <tr>
        <td><%= phq.release_date %></td>
        <td><%= phq.q1 %> <%= fa_icon("flag") if phq.q1_editor_id %></td>
        <td><%= phq.q2 %> <%= fa_icon("flag") if phq.q2_editor_id %></td>
        <td><%= phq.q3 %> <%= fa_icon("flag") if phq.q3_editor_id %></td>
        <td><%= phq.q4 %> <%= fa_icon("flag") if phq.q4_editor_id %></td>
        <td><%= phq.q5 %> <%= fa_icon("flag") if phq.q5_editor_id %></td>
        <td><%= phq.q6 %> <%= fa_icon("flag") if phq.q6_editor_id %></td>
        <td><%= phq.q7 %> <%= fa_icon("flag") if phq.q7_editor_id %></td>
        <td><%= phq.q8 %> <%= fa_icon("flag") if phq.q8_editor_id %></td>
        <td><%= phq.q9 %> <%= fa_icon("flag") if phq.q9_editor_id %></td>
        <td><%= link_to 'Edit', edit_coach_phq_assessment_path(phq, participant_id: @participant.id) %></td>
        <td><%= link_to 'Delete', coach_phq_assessment_path(phq, participant_id: @participant.id), method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{ fa_icon('plus') } New Phq assessment".html_safe, new_coach_phq_assessment_path(participant_id: @participant.id), class: "btn btn-default" %>
<%= link_to "#{ fa_icon('chevron-up') } Patient dashboard".html_safe, coach_group_patient_dashboard_path(@participant.active_group, @participant), class: "btn btn-default" %>

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/phq_assessments/index.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/coach/phq_assessments/index.html.erb