Skip to content

Commit

Permalink
NJ 190 - update household rent/own screen with description and reveals
Browse files Browse the repository at this point in the history
  • Loading branch information
aloverso committed Jan 7, 2025
1 parent e425191 commit 86aec1f
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 19 deletions.
41 changes: 34 additions & 7 deletions app/views/state_file/questions/nj_household_rent_own/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,49 @@

<% content_for :card do %>
<h1 class="h2"><%= title %></h1>
<p><%= t(".label", filing_year: current_tax_year) %></p>
<p><%= t(".description_html") %></p>
<%= form_with model: @form, url: { action: :update }, local: true, method: "put", builder: VitaMinFormBuilder do |f| %>
<div class="white-group">
<%= f.cfa_radio_set(
:household_rent_own,
label_text: t(".label"),
label_text: t(".label_html", filing_year: current_tax_year),
collection: [
{ value: :own, label: t(".homeowner") },
{ value: :rent, label: t(".tenant") },
{ value: :both, label: t(".both") },
{ value: :own, label: t(".homeowner_html") },
{ value: :rent, label: t(".tenant_html") },
{ value: :both, label: t(".both_html") },
{ value: :neither, label: t(".neither") },
],
legend_class: "sr-only"
]
) %>
</div>

<div class="reveal">
<button class="reveal__button"><%= t('.helper_1_header') %></button>
<div class="reveal__content">
<p><%= t('.helper_1_description') %></p>
</div>
</div>

<div class="reveal">
<button class="reveal__button"><%= t('.helper_2_header') %></button>
<div class="reveal__content">
<p><%= t('.helper_2_description') %></p>
</div>
</div>

<div class="reveal">
<button class="reveal__button"><%= t('.helper_3_header') %></button>
<div class="reveal__content">
<p><%= t('.helper_3_description') %></p>
</div>
</div>

<div class="reveal">
<button class="reveal__button"><%= t('.helper_4_header') %></button>
<div class="reveal__content">
<p><%= t('.helper_4_description_html') %></p>
</div>
</div>

<% if params[:return_to_review].present? %>
<%= hidden_field_tag "return_to_review", params[:return_to_review] %>
<% end %>
Expand Down
21 changes: 15 additions & 6 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3224,12 +3224,21 @@ en:
where_to_find_helper_heading: Where can I find property taxes paid?
nj_household_rent_own:
edit:
both: Both a tenant and a homeowner
homeowner: Homeowner
label: In %{filing_year}, which were you?
neither: Neither
tenant: Tenant (If you own a mobile home that is located in a mobile home park, you are considered a tenant.)
title: You might be eligible for the New Jersey Property Tax credit or deduction!
both_html: "<b>Both</b>: I was a homeowner for part of the year, and I was a renter for part of the year."
description_html: Your "main home" is where you primarily lived at any given time (e.g., a house, a condo, or an apartment). <b>You can’t have multiple main homes at the same time, but you may have different main homes throughout the year if you moved.</b>
helper_1_description: Yes. This tax break is designed to support people in New Jersey whose money contributes to property taxes. (Renters do this by paying rent, contributing to the cost of property taxes paid by the property owners.)
helper_1_header: Are you sure this applies to rent paid?
helper_2_description: No. Please answer the questions in this section for your main home only. You can’t claim this tax break for a vacation home, a "second home," or a property you own and rent to someone else.
helper_2_header: Can I claim for a vacation home or a property I rent out to someone?
helper_3_description: If you owned a mobile home in a mobile home park, you are considered a renter. Your site fees are what you paid in rent.
helper_3_header: What if I lived in a mobile home?
helper_4_description_html: The property tax <b>deduction</b> reduces your taxable income. We will deduct your share of property taxes paid or $15,000, whichever is less. For renters, we’ll consider 18% of rent paid as your share.
helper_4_header: How much is this deduction or credit worth?
homeowner_html: I was a <b>homeowner</b> for at least part of the year
label_html: How would you describe your living situation in %{filing_year} <b>as it pertains to your main home(s)</b>?
neither: Other
tenant_html: I was a <b>renter</b> for at least part of the year
title: You may qualify for a property tax deduction or credit on your main home, whether you owned or rented it.
nj_ineligible_property_tax:
edit:
continue_text: Click continue to see what else we can guide you to qualify for.
Expand Down
21 changes: 15 additions & 6 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3184,12 +3184,21 @@ es:
where_to_find_helper_heading: Where can I find property taxes paid?
nj_household_rent_own:
edit:
both: Tanto inquilino como propietario
homeowner: Dueño de casa
label: En %{filing_year}, ¿quién era usted?
neither: Tampoco
tenant: Inquilino (si usted es propietario de una casa móvil ubicada en un parque de casas móviles, se le considera inquilino).
title: "¡Usted podría ser elegible para el crédito o deducción del impuesto a la propiedad de New Jersey!"
both_html: "<b>Both</b>: I was a homeowner for part of the year, and I was a renter for part of the year."
description_html: Your "main home" is where you primarily lived at any given time (e.g., a house, a condo, or an apartment). <b>You can’t have multiple main homes at the same time, but you may have different main homes throughout the year if you moved.</b>
helper_1_description: Yes. This tax break is designed to support people in New Jersey whose money contributes to property taxes. (Renters do this by paying rent, contributing to the cost of property taxes paid by the property owners.)
helper_1_header: Are you sure this applies to rent paid?
helper_2_description: No. Please answer the questions in this section for your main home only. You can’t claim this tax break for a vacation home, a "second home," or a property you own and rent to someone else.
helper_2_header: Can I claim for a vacation home or a property I rent out to someone?
helper_3_description: If you owned a mobile home in a mobile home park, you are considered a renter. Your site fees are what you paid in rent.
helper_3_header: What if I lived in a mobile home?
helper_4_description_html: The property tax <b>deduction</b> reduces your taxable income. We will deduct your share of property taxes paid or $15,000, whichever is less. For renters, we’ll consider 18% of rent paid as your share.
helper_4_header: How much is this deduction or credit worth?
homeowner_html: I was a <b>homeowner</b> for at least part of the year
label_html: How would you describe your living situation in %{filing_year} <b>as it pertains to your main home(s)</b>?
neither: Other
tenant_html: I was a <b>renter</b> for at least part of the year
title: You may qualify for a property tax deduction or credit on your main home, whether you owned or rented it.
nj_ineligible_property_tax:
edit:
continue_text: Click continue to see what else we can guide you to qualify for.
Expand Down

0 comments on commit 86aec1f

Please sign in to comment.