From 6b04cf638a111e5e4901f04ce7c07503b293a5d7 Mon Sep 17 00:00:00 2001 From: Benjamin Randolph Date: Tue, 5 Nov 2024 15:15:49 -0700 Subject: [PATCH] Add filing status. --- app/views/federal_tax_brackets/_federal_tax_bracket.html.erb | 4 ++-- app/views/federal_tax_brackets/_index.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/federal_tax_brackets/_federal_tax_bracket.html.erb b/app/views/federal_tax_brackets/_federal_tax_bracket.html.erb index 55df87f..404e109 100644 --- a/app/views/federal_tax_brackets/_federal_tax_bracket.html.erb +++ b/app/views/federal_tax_brackets/_federal_tax_bracket.html.erb @@ -1,6 +1,6 @@ <%= turbo_frame_tag dom_id(federal_tax_bracket) do %> -
- <% 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) %> +
+ <% 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| %>
<%= attribute %>
<% end %> diff --git a/app/views/federal_tax_brackets/_index.html.erb b/app/views/federal_tax_brackets/_index.html.erb index a54a7e0..9974136 100644 --- a/app/views/federal_tax_brackets/_index.html.erb +++ b/app/views/federal_tax_brackets/_index.html.erb @@ -1,7 +1,7 @@ <%= turbo_frame_tag :federal_tax_brackets do %>
-
- <% tax_headings = %w[Tier From To Rate Cumulative] %> +
+ <% tax_headings = ["Filing Status", "Tier", "From", "To", "Rate", "Cumulative"] %> <% tax_headings.each do |tax_heading| %>
<%= tax_heading %>