|
1 | 1 | <% title = t(".header") %> |
2 | 2 |
|
3 | | -<div class="fyst-home-container"> |
4 | | - <div class="fyst-home-content"> |
5 | | - <h1 class="h1 strong"><%= title %></h1> |
6 | | - |
7 | | - <% if app_time.before?(Rails.configuration.state_file_end_of_new_intakes) %> |
8 | | - <div class="warning"> |
9 | | - <%= t("state_file.landing_page.edit.closing_soon_html") %> |
10 | | - </div> |
| 3 | +<% if Flipper.enabled?(:fyst_sunset_pya_live) %> |
| 4 | + <div class="warning"> |
| 5 | + <%= t(".closed_warning", tax_year: current_tax_year) %> |
| 6 | + </div> |
| 7 | + <h1 class="h1 strong"><%= title %></h1> |
| 8 | + <div class="spacing-below-25"> |
| 9 | + <%= t(".closed_forever_subheader_html", faq_link: state_faq_path(us_state: 'us')) %> |
| 10 | + </div> |
11 | 11 |
|
12 | | - <div class="spacing-above-25"> |
13 | | - <p><%= t(".subheader_1_html", login_path: login_options_path) %></p> |
14 | | - <p> |
15 | | - <%= t(".subheader_2_html", login_path: login_options_path, faqs_path: state_faq_path(us_state: :us)) %> |
16 | | - </p> |
17 | | - <p><%= t(".subheader_3_html", login_path: login_options_path) %></p> |
18 | | - </div> |
| 12 | + <%= link_to "https://pya.fileyourstatetaxes.org/#{I18n.locale}/year_select", class: "button button--primary button--icon button--wide spacing-below-15 no-external", id: "firstCta", role: "button", style: "display: flex; justify-content: center; align-items: center; text-align: center;" do %> |
| 13 | + <%= t(".download_your_return") %> |
| 14 | + <% end %> |
19 | 15 |
|
20 | | - <% if Flipper.enabled?(:get_your_pdf) %> |
21 | | - <div data-testid="get-your-pdf-sign-in" class="spacing-below-25"> |
22 | | - <%= t(".looking_for_return_html", link: state_file_archived_intakes_edit_email_address_path )%> |
| 16 | + <div class="spacing-below-25"> |
| 17 | + <%= link_to "https://www.getyourrefund.org/#{I18n.locale}", class: "button button--icon button--wide no-external", id: "firstCta", role: "button", style: "display: flex; justify-content: center; align-items: center; text-align: center;" do %> |
| 18 | + <%= image_tag("icons/uswds-launch.svg", alt: "", class: "button__icon") %> |
| 19 | + <%= t(".visit_gyr") %> |
| 20 | + <% end %> |
| 21 | + </div> |
| 22 | +<% else %> |
| 23 | + <div class="fyst-home-container"> |
| 24 | + <div class="fyst-home-content"> |
| 25 | + <% if Flipper.enabled?(:fyst_sunset_pya_live) %> |
| 26 | + <div class="warning"> |
| 27 | + <%= t(".closed_warning", tax_year: current_tax_year) %> |
23 | 28 | </div> |
24 | | - <% else %> |
| 29 | + <% end %> |
| 30 | + <h1 class="h1 strong"><%= title %></h1> |
| 31 | + <% if Flipper.enabled?(:fyst_sunset_pya_live) %> |
25 | 32 | <div class="spacing-below-25"> |
26 | | - <p class="text--bold"><%= t(".check_back_for_prior_year_returns") %></p> |
27 | | - <%= link_to t(".faq_prior_year_returns"), state_faq_section_path(us_state: :az, section_key: "how_can_i_access_my_2023_state_tax_return") %> |
| 33 | + <%= t(".closed_forever_subheader_html", faq_link: state_faq_path(us_state: 'us')) %> |
28 | 34 | </div> |
29 | | - <% end %> |
30 | | - |
31 | | - <div class="reveal"> |
32 | | - <button class="reveal__button"><%= t('.helper_heading_html') %></button> |
33 | | - <div class="reveal__content"> |
34 | | - <%= t(".section1_html", faq_link: state_faq_path(us_state: 'us')) %> |
| 35 | + <div class="spacing-below-25"> |
| 36 | + <%= link_to "https://pya.fileyourstatetaxes.org/#{I18n.locale}", class: "button button--primary button--icon button--full-width spacing-below-15", role: "button", id: "firstCta" do %> |
| 37 | + <%= t(".download_your_return") %> |
| 38 | + <% end %> |
35 | 39 | </div> |
36 | | - </div> |
37 | | - <% else %> |
38 | | - <div> |
39 | | - <% if app_time.after?(Rails.configuration.state_file_end_of_in_progress_intakes) %> |
40 | | - <%= t(".end_of_in_progress_intakes_subheader_html", sign_in_url: StateFile::StateFilePagesController.to_path_helper(action: :login_options)) %> |
41 | | - <% else %> |
42 | | - <%= t(".closed_subheader_html", sign_in_url: StateFile::StateFilePagesController.to_path_helper(action: :login_options)) %> |
| 40 | + |
| 41 | + <%= link_to "https://getyourrefund.org/#{I18n.locale}", class: "button button--primary button--icon button--full-width", role: "button", id: "firstCta" do %> |
| 42 | + <%= t(".visit_gyr") %> |
43 | 43 | <% end %> |
44 | | - <p> |
45 | | - <%= t(".looking_for_return_html", link: state_file_archived_intakes_edit_email_address_path )%> |
46 | | - </p> |
47 | | - <%= link_to questions_return_status_path(locale: I18n.locale), class: "button button--primary button--wide", role: "button", id: "firstCta" do %> |
48 | | - <%= t(".download_return_button") %> |
| 44 | + <% else %> |
| 45 | + <% if app_time.before?(Rails.configuration.state_file_end_of_new_intakes) %> |
| 46 | + <div class="warning"> |
| 47 | + <%= t("state_file.landing_page.edit.closing_soon_html") %> |
| 48 | + </div> |
| 49 | + |
| 50 | + <div class="spacing-above-25"> |
| 51 | + <p><%= t(".subheader_1_html", login_path: login_options_path) %></p> |
| 52 | + <p> |
| 53 | + <%= t(".subheader_2_html", login_path: login_options_path, faqs_path: state_faq_path(us_state: :us)) %> |
| 54 | + </p> |
| 55 | + <p><%= t(".subheader_3_html", login_path: login_options_path) %></p> |
| 56 | + </div> |
| 57 | + |
| 58 | + <% if Flipper.enabled?(:get_your_pdf) %> |
| 59 | + <div data-testid="get-your-pdf-sign-in" class="spacing-below-25"> |
| 60 | + <%= t(".looking_for_return_html", link: state_file_archived_intakes_edit_email_address_path )%> |
| 61 | + </div> |
| 62 | + <% else %> |
| 63 | + <div class="spacing-below-25"> |
| 64 | + <p class="text--bold"><%= t(".check_back_for_prior_year_returns") %></p> |
| 65 | + <%= link_to t(".faq_prior_year_returns"), state_faq_section_path(us_state: :az, section_key: "how_can_i_access_my_2023_state_tax_return") %> |
| 66 | + </div> |
| 67 | + <% end %> |
| 68 | + |
| 69 | + <div class="reveal"> |
| 70 | + <button class="reveal__button"><%= t('.helper_heading_html') %></button> |
| 71 | + <div class="reveal__content"> |
| 72 | + <%= t(".section1_html", faq_link: state_faq_path(us_state: 'us')) %> |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + <% else %> |
| 76 | + <div> |
| 77 | + <% if app_time.after?(Rails.configuration.state_file_end_of_in_progress_intakes) %> |
| 78 | + <%= t(".end_of_in_progress_intakes_subheader_html", sign_in_url: StateFile::StateFilePagesController.to_path_helper(action: :login_options)) %> |
| 79 | + <% else %> |
| 80 | + <%= t(".closed_subheader_html", sign_in_url: StateFile::StateFilePagesController.to_path_helper(action: :login_options)) %> |
| 81 | + <% end %> |
| 82 | + <p> |
| 83 | + <%= t(".looking_for_return_html", link: state_file_archived_intakes_edit_email_address_path )%> |
| 84 | + </p> |
| 85 | + <%= link_to questions_return_status_path(locale: I18n.locale), class: "button button--primary button--wide", role: "button", id: "firstCta" do %> |
| 86 | + <%= t(".download_return_button") %> |
| 87 | + <% end %> |
| 88 | + </div> |
49 | 89 | <% end %> |
50 | | - </div> |
51 | | - <% end %> |
| 90 | + <% end %> |
| 91 | + </div> |
| 92 | + <%= image_tag 'questions/welcome.svg', class: 'fyst-home-image', alt: '' %> |
52 | 93 | </div> |
53 | | - <%= image_tag 'questions/welcome.svg', class: 'fyst-home-image', alt: '' %> |
54 | | -</div> |
| 94 | +<% end %> |
55 | 95 |
|
56 | | -<% unless acts_like_production? %> |
| 96 | +<% unless acts_like_production? || Flipper.enabled?(:fyst_sunset_pya_live)%> |
57 | 97 | <section> |
58 | 98 | <% StateFile::StateInformationService.active_state_codes.each do |state_code| %> |
59 | 99 | <%= link_to "Start Test #{state_code.upcase}", |
|
0 commit comments