Skip to content

Commit

Permalink
NJ 157 - add review screen for dependents attending college (#5025)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloverso authored Nov 25, 2024
1 parent a2abec5 commit 61c5736
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/views/state_file/questions/nj_review/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@

<%= render "state_file/questions/shared/review_header" %>

<% if current_intake.dependents.count(&:under_22?).positive? %>
<div id="college-dependents" class="white-group">
<div class="spacing-below-5">
<h2 class="text--body text--bold spacing-below-5"><%=t(".college_dependents") %></h2>
<% current_intake.dependents.each do | dependent | %>
<% if dependent.nj_qualifies_for_college_exemption? %>
<p><%=dependent.full_name %></p>
<% end %>
<% end %>
<% if current_intake.dependents.all? { |dependent| !dependent.nj_qualifies_for_college_exemption? } %>
<p><%= t("general.none") %></p>
<% end %>
<%= link_to StateFile::Questions::NjCollegeDependentsExemptionController.to_path_helper(return_to_review: "y"), class: "button--small" do %>
<%= t("general.edit") %>
<span class="sr-only"><%= t(".college_dependents") %></span>
<% end %>
</div>
</div>
<% end %>

<div id="county" class="white-group">
<div class="spacing-below-5">
<h2 class="text--body text--bold spacing-below-5"><%=t(".county") %></h2>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2979,6 +2979,7 @@ en:
edit:
amount: Amount
claimed_as_eitc_qualifying_child: I could be someone else's qualifying child for the Earned Income Tax Credit.
college_dependents: Dependents attending college
county: County
edit_disability: disability status
edit_gubernatorial: gubernatorial fund contributions
Expand Down
1 change: 1 addition & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2952,6 +2952,7 @@ es:
edit:
amount: Cantidad
claimed_as_eitc_qualifying_child: I could be someone else's qualifying child for the Earned Income Tax Credit.
college_dependents: Dependents attending college
county: Condado
edit_disability: disability status
edit_gubernatorial: gubernatorial fund contributions
Expand Down

0 comments on commit 61c5736

Please sign in to comment.