From 486cece2ca8815d8dfd15119017126b7dc99affe Mon Sep 17 00:00:00 2001 From: Benjamin Randolph Date: Tue, 5 Nov 2024 14:57:53 -0700 Subject: [PATCH] Style brackets. --- .../_federal_tax_bracket.html.erb | 6 ++--- .../federal_tax_brackets/_index.html.erb | 26 +++++++++---------- 2 files changed, 16 insertions(+), 16 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 0b73cfe..55df87f 100644 --- a/app/views/federal_tax_brackets/_federal_tax_bracket.html.erb +++ b/app/views/federal_tax_brackets/_federal_tax_bracket.html.erb @@ -1,9 +1,9 @@ <%= 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.each do |attribute| %> -
<%= attribute %>
+
<%= attribute %>
<% end %> -
<%= link_to 'Edit', edit_federal_tax_bracket_path(federal_tax_bracket), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
+
<%= link_to 'Edit', edit_federal_tax_bracket_path(federal_tax_bracket), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
<% end %> diff --git a/app/views/federal_tax_brackets/_index.html.erb b/app/views/federal_tax_brackets/_index.html.erb index 7973a7b..a54a7e0 100644 --- a/app/views/federal_tax_brackets/_index.html.erb +++ b/app/views/federal_tax_brackets/_index.html.erb @@ -1,15 +1,15 @@ -
-
- <% tax_headings = %w[Tier From To Rate Cumulative] %> - <% tax_headings.each do |tax_heading| %> -
- <%= tax_heading %> -
- <% end %> -
-
+<%= turbo_frame_tag :federal_tax_brackets do %> +
+
+ <% tax_headings = %w[Tier From To Rate Cumulative] %> + <% tax_headings.each do |tax_heading| %> +
+ <%= tax_heading %> +
+ <% end %> +
+
- <%= turbo_frame_tag :federal_tax_brackets do %> <%= render @federal_tax_brackets %> - <% end %> -
+
+<% end %>