Skip to content

Commit

Permalink
Add filing status.
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 committed Nov 5, 2024
1 parent 4d6f2d3 commit 6b04cf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/federal_tax_brackets/_federal_tax_bracket.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= turbo_frame_tag dom_id(federal_tax_bracket) do %>
<div class="grid grid-cols-6">
<% attributes = federal_tax_bracket.tier, humanized_money_with_symbol(federal_tax_bracket.bottom_range), humanized_money_with_symbol(federal_tax_bracket.top_range), number_to_percentage(federal_tax_bracket.rate * 100, precision: 1), humanized_money_with_symbol(federal_tax_bracket.cumulative) %>
<div class="grid grid-cols-7">
<% attributes = federal_tax_bracket.federal_tax_table_type.filing_status.humanize.capitalize, federal_tax_bracket.tier, humanized_money_with_symbol(federal_tax_bracket.bottom_range), humanized_money_with_symbol(federal_tax_bracket.top_range), number_to_percentage(federal_tax_bracket.rate * 100, precision: 1), humanized_money_with_symbol(federal_tax_bracket.cumulative) %>
<% attributes.each do |attribute| %>
<div class="py-1"><%= attribute %></div>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/federal_tax_brackets/_index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= turbo_frame_tag :federal_tax_brackets do %>
<div class=" py-6 sm:px-6 lg:px-8">
<div class="grid grid-cols-6">
<% tax_headings = %w[Tier From To Rate Cumulative] %>
<div class="grid grid-cols-7">
<% tax_headings = ["Filing Status", "Tier", "From", "To", "Rate", "Cumulative"] %>
<% tax_headings.each do |tax_heading| %>
<div>
<strong><%= tax_heading %></strong>
Expand Down

0 comments on commit 6b04cf6

Please sign in to comment.