This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from alphagov/feature-all-child-benefit-changes
New feature: Part tax year children
- Loading branch information
Showing
13 changed files
with
683 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
<% @calculator.starting_children.each_with_index do |child, index| -%> | ||
<div class="child<% if child.errors.any? %> validation-error<% end -%>"> | ||
<% child.errors.each do |key, message| -%> | ||
<p><%= message %></p> | ||
<% end -%> | ||
<h3>Child <span class="child-number"><%= index + 1 %></span></h3> | ||
<%= render "starting_child", :index => index, :child => child %> | ||
<% if @calculator.starting_children.count == 0 %> | ||
<div class="child"> | ||
<h3>Child <span class="child-number"> 1 </span></h3> | ||
<%= render "starting_child", index: 0, child: StartingChild.new %> | ||
</div> | ||
<% end -%> | ||
<% else %> | ||
<% @calculator.starting_children.each_with_index do |child, index| -%> | ||
<div class="child<% if child.errors.any? %> validation-error<% end -%>"> | ||
<% child.errors.each do |key, message| -%> | ||
<p><%= message %></p> | ||
<% end -%> | ||
<h3>Child <span class="child-number"><%= index + 1 %></span></h3> | ||
<%= render "starting_child", :index => index, :child => child %> | ||
</div> | ||
<% end -%> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.