|
9 | 9 | <% end %> |
10 | 10 | </ol> |
11 | 11 |
|
12 | | -<h2 class="h2"><%= t("views.proof_guidance.edit.proof_you_may_need") %></h2> |
| 12 | +<% if @current_screener.requires_proof? %> |
13 | 13 |
|
14 | | -<div class="reveal"> |
15 | | - <button class="reveal__button" aria-expanded="true"> |
16 | | - <i class="icon-help" style="padding-right: 1rem;"></i><strong><%= t("views.proof_guidance.edit.already_has_proof") %></strong> |
17 | | - </button> |
18 | | - <div class="reveal__content"> |
19 | | - <ul class="list--bulleted spacing-above-0"> |
20 | | - <% t("views.proof_guidance.edit.already_has_proof_content_html").each do |list_item| %> |
21 | | - <li><%= list_item %></li> |
22 | | - <% end %> |
23 | | - </ul> |
24 | | - </div> |
25 | | -</div> |
| 14 | + <h2 class="h2"><%= t("views.proof_guidance.edit.proof_you_may_need") %></h2> |
26 | 15 |
|
27 | | -<div class="spacing-below-60"> |
28 | | - <% if @current_screener.earnings_above_minimum? && !@current_screener.exempt_from_work_rules? %> |
29 | | - <div> |
30 | | - <%= image_tag "work.svg", class: "illustration left-justified" %> |
31 | | - <%= t("views.proof_guidance.edit.proof_of_working_html") %> |
| 16 | + <div class="reveal"> |
| 17 | + <button class="reveal__button" aria-expanded="true"> |
| 18 | + <i class="icon-help" style="padding-right: 1rem;"></i><strong><%= t("views.proof_guidance.edit.already_has_proof") %></strong> |
| 19 | + </button> |
| 20 | + <div class="reveal__content"> |
| 21 | + <ul class="list--bulleted spacing-above-0"> |
| 22 | + <% t("views.proof_guidance.edit.already_has_proof_content_html").each do |list_item| %> |
| 23 | + <li><%= list_item %></li> |
| 24 | + <% end %> |
| 25 | + </ul> |
32 | 26 | </div> |
33 | | - <% end %> |
| 27 | + </div> |
34 | 28 |
|
35 | | - <% if @current_screener.is_student_yes? %> |
36 | | - <div class="spacing-above-35"> |
37 | | - <%= image_tag "school.svg", class: "illustration left-justified" %> |
38 | | - <%= t("views.proof_guidance.edit.proof_of_education_html") %> |
39 | | - <% if @current_screener.age && @current_screener.age > 50 %> |
40 | | - <%= t("views.proof_guidance.edit.proof_of_education_over_50_html") %> |
41 | | - <% end %> |
42 | | - </div> |
43 | | - <% end %> |
| 29 | + <div class="spacing-below-60"> |
| 30 | + <% if @current_screener.earnings_above_minimum? && !@current_screener.exempt_from_work_rules? %> |
| 31 | + <div> |
| 32 | + <%= image_tag "work.svg", class: "illustration left-justified" %> |
| 33 | + <%= t("views.proof_guidance.edit.proof_of_working_html") %> |
| 34 | + </div> |
| 35 | + <% end %> |
44 | 36 |
|
45 | | - <% if @current_screener.preventing_work_drugs_alcohol_yes? || @current_screener.preventing_work_medical_condition_yes? %> |
46 | | - <div class="spacing-above-35"> |
47 | | - <%= image_tag "health.svg", class: "illustration left-justified" %> |
48 | | - <%= t("views.proof_guidance.edit.proof_of_health_condition_html") %> |
49 | | - </div> |
50 | | - <% end %> |
| 37 | + <% if @current_screener.is_student_yes? %> |
| 38 | + <div class="spacing-above-35"> |
| 39 | + <%= image_tag "school.svg", class: "illustration left-justified" %> |
| 40 | + <%= t("views.proof_guidance.edit.proof_of_education_html") %> |
| 41 | + <% if @current_screener.age && @current_screener.age > 50 %> |
| 42 | + <%= t("views.proof_guidance.edit.proof_of_education_over_50_html") %> |
| 43 | + <% end %> |
| 44 | + </div> |
| 45 | + <% end %> |
| 46 | + |
| 47 | + <% if @current_screener.preventing_work_drugs_alcohol_yes? || @current_screener.preventing_work_medical_condition_yes? %> |
| 48 | + <div class="spacing-above-35"> |
| 49 | + <%= image_tag "health.svg", class: "illustration left-justified" %> |
| 50 | + <%= t("views.proof_guidance.edit.proof_of_health_condition_html") %> |
| 51 | + </div> |
| 52 | + <% end %> |
51 | 53 |
|
52 | | - <% if @current_screener.receiving_disability_benefits? %> |
53 | | - <div class="spacing-above-35"> |
54 | | - <%= image_tag "disability.svg", class: "illustration left-justified" %> |
55 | | - <%= t("views.proof_guidance.edit.proof_of_disability_benefits_html") %> |
56 | | - <ul class="list--bulleted"> |
57 | | - <% Screener::DISABILITY_BENEFIT_ATTRIBUTES.each do |benefit| %> |
58 | | - <% if @current_screener.public_send("#{benefit}_yes?") %> |
59 | | - <li><%= t("views.disability_benefits.edit.#{benefit}") %></li> |
| 54 | + <% if @current_screener.receiving_disability_benefits? %> |
| 55 | + <div class="spacing-above-35"> |
| 56 | + <%= image_tag "disability.svg", class: "illustration left-justified" %> |
| 57 | + <%= t("views.proof_guidance.edit.proof_of_disability_benefits_html") %> |
| 58 | + <ul class="list--bulleted"> |
| 59 | + <% Screener::DISABILITY_BENEFIT_ATTRIBUTES.each do |benefit| %> |
| 60 | + <% if @current_screener.public_send("#{benefit}_yes?") %> |
| 61 | + <li><%= t("views.disability_benefits.edit.#{benefit}") %></li> |
| 62 | + <% end %> |
60 | 63 | <% end %> |
61 | | - <% end %> |
62 | | - </ul> |
63 | | - </div> |
64 | | - <% end %> |
| 64 | + </ul> |
| 65 | + </div> |
| 66 | + <% end %> |
65 | 67 |
|
66 | | - <% if @current_screener.is_in_alcohol_treatment_program_yes? %> |
67 | | - <div class="spacing-above-35"> |
68 | | - <%= image_tag "treatment-program.svg", class: "illustration left-justified" %> |
69 | | - <%= t("views.proof_guidance.edit.proof_of_treatment_program_html") %> |
70 | | - </div> |
71 | | - <% end %> |
72 | | -</div> |
| 68 | + <% if @current_screener.is_in_alcohol_treatment_program_yes? %> |
| 69 | + <div class="spacing-above-35"> |
| 70 | + <%= image_tag "treatment-program.svg", class: "illustration left-justified" %> |
| 71 | + <%= t("views.proof_guidance.edit.proof_of_treatment_program_html") %> |
| 72 | + </div> |
| 73 | + <% end %> |
| 74 | + </div> |
| 75 | +<% end %> |
73 | 76 |
|
74 | 77 | <%= render "shared/continue_button" %> |
0 commit comments