|
13 | 13 |
|
14 | 14 | <%= render AppPatientCardComponent.new(patient) %>
|
15 | 15 |
|
16 |
| -<% if display_gillick_assessment_card? %> |
17 |
| - <%= render AppCardComponent.new do |c| %> |
18 |
| - <% c.with_heading { "Gillick assessment" } %> |
19 |
| - <% if (gillick_assessment = patient_session.gillick_assessment(programme)) %> |
20 |
| - <% if gillick_assessment.gillick_competent? %> |
21 |
| - <p class="app-status app-status--aqua-green"> |
22 |
| - <svg class="nhsuk-icon nhsuk-icon__tick" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"> |
23 |
| - <path d="M18.4 7.8l-8.5 8.4L5.6 12" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"></path> |
24 |
| - </svg> |
25 |
| - Child assessed as Gillick competent |
26 |
| - </p> |
27 |
| - <% else %> |
28 |
| - <p class="app-status app-status--red"> |
29 |
| - <svg class="nhsuk-icon nhsuk-icon__cross" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"> |
30 |
| - <path d="M18.6 6.5c.5.5.5 1.5 0 2l-4 4 4 4c.5.6.5 1.4 0 2-.4.4-.7.4-1 .4-.5 0-.9 0-1.2-.3l-3.9-4-4 4c-.3.3-.5.3-1 .3a1.5 1.5 0 0 1-1-2.4l3.9-4-4-4c-.5-.5-.5-1.4 0-2 .6-.7 1.5-.7 2.2 0l3.9 3.9 4-4c.6-.6 1.4-.6 2 0Z" fill="currentColor"></path> |
31 |
| - </svg> |
32 |
| - Child assessed as not Gillick competent |
33 |
| - </p> |
34 |
| - <% end %> |
35 |
| - |
36 |
| - <% if (notes = gillick_assessment.notes).present? %> |
37 |
| - <p class="nhsuk-body"><%= notes %></p> |
38 |
| - <% end %> |
39 |
| - |
40 |
| - <% if helpers.policy(gillick_assessment).edit? %> |
41 |
| - <p class="nhsuk-body"> |
42 |
| - <%= govuk_button_link_to "Edit Gillick competence", |
43 |
| - edit_session_patient_programme_gillick_assessment_path( |
44 |
| - session, |
45 |
| - patient, |
46 |
| - programme, |
47 |
| - ), class: "app-button--secondary nhsuk-u-margin-bottom-0" %> |
48 |
| - </p> |
49 |
| - <% end %> |
50 |
| - <% elsif gillick_assessment_can_be_recorded? %> |
51 |
| - <p class="nhsuk-body"> |
52 |
| - <%= govuk_button_link_to "Assess Gillick competence", |
53 |
| - edit_session_patient_programme_gillick_assessment_path( |
54 |
| - session, |
55 |
| - patient, |
56 |
| - programme, |
57 |
| - ), class: "app-button--secondary nhsuk-u-margin-bottom-0" %> |
58 |
| - </p> |
59 |
| - <% end %> |
60 |
| - <% end %> |
61 |
| -<% end %> |
| 16 | +<%= render AppGillickAssessmentComponent.new(patient_session:, programme:) %> |
62 | 17 |
|
63 | 18 | <%= render AppCardComponent.new do |c| %>
|
64 | 19 | <% c.with_heading { "Consent" } %>
|
|
0 commit comments