Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/assets/images/questions/claiming.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions app/controllers/questions/claiming_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Questions
class ClaimingController < QuestionsController
include AuthenticatedClientConcern

layout "yes_no_question"

def method_name
"claimed_by_another"
end
end
end
7 changes: 7 additions & 0 deletions app/forms/claiming_form.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class ClaimingForm < QuestionsForm
set_attributes_for :intake, :claimed_by_another

def save
@intake.update(attributes_for(:intake))
end
end
3 changes: 3 additions & 0 deletions app/lib/navigation/gyr_question_navigation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class GyrQuestionNavigation
# Filing status
Questions::FilingJointController,

# Claiming
Questions::ClaimingController,

# Alimony
Questions::ReceivedAlimonyController,
Questions::PaidAlimonyController,
Expand Down
2 changes: 1 addition & 1 deletion app/views/hub/clients/edit_13614c_form_page1.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
</div>
</div>
<div class="hub-form__row">
<span style="background-color: #e5e5e5; margin-bottom: 20px;"><%= f.cfa_select(:claimed_by_another, t(".fields.claimed_by_another"), yes_no_options_for_select) %></span>
<%= f.cfa_select(:claimed_by_another, t(".fields.claimed_by_another"), yes_no_options_for_select) %>
</div>

<div id="marital-status-fields">
Expand Down
2 changes: 2 additions & 0 deletions app/views/questions/claiming/edit.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<% content_for :form_question, t("views.questions.claiming.title", :count => current_intake.filer_count) %>
<% content_for :form_help_text, t("views.questions.claiming.body", :count => current_intake.filer_count) %>
7 changes: 7 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5551,6 +5551,13 @@ en:
partner_info: Our team at %{partner_name} is here to help you file again.
title: Welcome back %{name}!
title: Our team at %{partner_name} is here to help!
claiming:
body:
one: Answer yes if you could be claimed as a dependent.
other: Answer yes if you or your spouse could be claimed as a dependent.
title:
one: Can anyone else claim you on their tax return?
other: Can anyone else claim you or your spouse on their tax return?
consent:
birth_date: Date of birth
cta: I agree
Expand Down
7 changes: 7 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5536,6 +5536,13 @@ es:
partner_info: De nuevo, nuestro equipo en %{partner_name}está aquí para ayudarle a presentar su declaración.
title: "¡Bienvenido de nuevo %{name}!"
title: "¡Nuestro equipo en %{partner_name} está aquí para ayudar!"
claiming:
body:
one: Responda ‘sí’ si puede ser reclamado como dependiente.
other: Responda “Sí” si es posible que a usted o a su cónyuge los incluyan como dependientes.
title:
one: "¿Puede alguien más reclamarlo a usted en su declaración de impuestos?"
other: "¿Alguien podría incluirlo a usted o a su cónyuge en su declaración de impuestos?"
consent:
birth_date: Fecha de nacimiento
cta: Estoy de acuerdo
Expand Down
6 changes: 6 additions & 0 deletions spec/features/web_intake/new_joint_filers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ def intake_up_to_documents(backtax_year_offsets: [0, 2])
click_on "Yes"
end

page_change_block do
# Claimed status
expect(page).to have_css("h1", text: "Can anyone else claim you or your spouse on their tax return?")
click_on "No"
end

page_change_block do
# Alimony
screenshot_after do
Expand Down
6 changes: 6 additions & 0 deletions spec/features/web_intake/new_single_filer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ def intake_after_triage_up_to_documents(intake)
click_on "No"
end

page_change_block do
# Claimed status
expect(page).to have_css("h1", text: "Can anyone else claim you on their tax return?")
click_on "No"
end

page_change_block do
# Dependents
page_change_check(I18n.t("views.questions.had_dependents.title", year: intake.most_recent_filing_year, count: intake.filer_count ))
Expand Down
Loading