|
11 | 11 | <%= t('views.screener_mailer.send_screener_results.reference_code', code: @screener.confirmation_code) %> |
12 | 12 |
|
13 | 13 | --- |
14 | | -<% website = LocationData::Counties.website_for(@state, @county) %> |
15 | | -<% email = LocationData::Counties.email_for(@state, @county) %> |
| 14 | +<% state = @screener.state %> |
| 15 | +<% county = @screener.county %> |
| 16 | +<% website = LocationData::Counties.website_for(state, county) %> |
| 17 | +<% email = LocationData::Counties.email_for(state, county) %> |
16 | 18 |
|
17 | 19 | <%= t('views.screener_mailer.send_screener_results.how_to_submit_heading') %> |
18 | 20 |
|
|
22 | 24 |
|
23 | 25 | 2. <%= t('views.screener_mailer.send_screener_results.mail_label') %> <%= t('views.screener_mailer.send_screener_results.mail_instructions') %> |
24 | 26 |
|
25 | | - <%= LocationData::Counties.mailing_address_for(@state, @county).split("\n").join("\n ") %> |
| 27 | + <%= LocationData::Counties.mailing_address_for(state, county).split("\n").join("\n ") %> |
26 | 28 |
|
27 | 29 | 3. <%= t('views.screener_mailer.send_screener_results.in_person_label') %> <%= t('views.screener_mailer.send_screener_results.in_person_instructions') %> |
28 | 30 |
|
29 | | - <%= LocationData::Counties.physical_address_for(@state, @county).split("\n").join("\n ") %> |
| 31 | + <%= LocationData::Counties.physical_address_for(state, county).split("\n").join("\n ") %> |
30 | 32 |
|
31 | 33 | <%= t('views.screener_mailer.send_screener_results.questions_intro') %> |
32 | 34 |
|
33 | 35 | - <%= t('views.screener_mailer.send_screener_results.check_website', website: website) %> |
34 | 36 | <% if email.present? %> |
35 | 37 | - <%= t('views.screener_mailer.send_screener_results.email_office', email: email) %> |
36 | 38 | <% end %> |
37 | | -<% if (phone = LocationData::Counties.phone_for(@state, @county)).present? %> |
| 39 | +<% if (phone = LocationData::Counties.phone_for(state, county)).present? %> |
38 | 40 | - <%= t('views.screener_mailer.send_screener_results.call_office', phone: phone) %> |
39 | 41 | <% end %> |
0 commit comments