-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend_screener_results.html.erb
More file actions
76 lines (67 loc) · 2.92 KB
/
send_screener_results.html.erb
File metadata and controls
76 lines (67 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<%= image_tag attachments["gbh_email_header.png"].url, alt: "GetBenefitsHelp", style: "width: 100%; max-width: 300px; display: block;" %>
<hr style="border: none; border-top: 2px solid #034E46; margin: 0;">
<p>
<%= t('views.screener_mailer.send_screener_results.greeting', first_name: @screener.first_name, last_name: @screener.last_name) %>
</p>
<p>
<%= t('views.screener_mailer.send_screener_results.attachment_notice') %>
</p>
<hr style="border: none; border-top: 1px solid #C6C6C6; margin: 0;">
<h2 style="font-weight: bold;">
<%= t('views.screener_mailer.send_screener_results.next_step_heading') %>
</h2>
<p>
<%= t('views.screener_mailer.send_screener_results.next_step_instructions') %>
</p>
<p>
<%= t('views.screener_mailer.send_screener_results.reference_code', code: @screener.confirmation_code) %>
</p>
<hr style="border: none; border-top: 1px solid #C6C6C6; margin: 0;">
<h3 style="font-weight: bold;">
<%= t('views.screener_mailer.send_screener_results.how_to_submit_heading') %>
</h3>
<% state = @screener.state %>
<% county = @screener.county %>
<% website = LocationData::Counties.website_for(state, county) %>
<% email = LocationData::Counties.email_for(state, county) %>
<ol style="line-height: 2;">
<li>
<strong><%= t('views.screener_mailer.send_screener_results.online_label') %></strong> <%= t('views.screener_mailer.send_screener_results.online_epass_html').html_safe %>
<br/><br/>
<%= t('views.screener_mailer.send_screener_results.online_county', website: website) %><%= t('views.screener_mailer.send_screener_results.online_county_with_email', email: email) if email.present? %>.
</li>
<li>
<strong><%= t('views.screener_mailer.send_screener_results.mail_label') %></strong> <%= t('views.screener_mailer.send_screener_results.mail_instructions') %>
<br/><br/>
<div style="font-style: italic;">
<% LocationData::Counties.mailing_address_for(state, county).split("\n").map do |line| %>
<%= line %>
<br/>
<% end %>
</div>
</li>
<li>
<strong><%= t('views.screener_mailer.send_screener_results.in_person_label') %></strong> <%= t('views.screener_mailer.send_screener_results.in_person_instructions') %>
<br/><br/>
<div style="font-style: italic;">
<% LocationData::Counties.physical_address_for(state, county).split("\n").map do |line| %>
<%= line %>
<br/>
<% end %>
</div>
</li>
</ol>
<p>
<%= t('views.screener_mailer.send_screener_results.questions_intro') %>
</p>
<ul style="line-height: 2;">
<li><%= t('views.screener_mailer.send_screener_results.check_website', website: website) %></li>
<% if email.present? %>
<li>
<%= t('views.screener_mailer.send_screener_results.email_office', email: email) %>
</li>
<% end %>
<% if (phone = LocationData::Counties.phone_for(state, county)).present? %>
<li><%= t('views.screener_mailer.send_screener_results.call_office', phone: phone) %></li>
<% end %>
</ul>