-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
76 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<ul class="flex flex-wrap text-sm font-medium text-center text-gray-500 border-b border-gray-200"> | ||
<li class="mx-auto"> | ||
<a href="<%= root_path %>" aria-current="page" class="inline-block p-4 text-blue-600 bg-gray-100 rounded-t-lg active">Budget Calculator</a> | ||
</li> | ||
<li class="mx-auto"> | ||
<%= link_to "Federal Tax Brackets", federal_tax_brackets_path, data: { turbo_stream: true }, class: "inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50" %> | ||
</li> | ||
<li class="mx-auto"> | ||
<a href="#" class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50">State Income Tax</a> | ||
</li> | ||
<li class="mx-auto"> | ||
<a href="#" class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50">Incomes</a> | ||
</li> | ||
<li class="mx-auto"> | ||
<a href="#" class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50">Fixed Expenses</a> | ||
</li> | ||
</ul> | ||
<%= turbo_frame_tag "dashboard_toolbar" do %> | ||
<ul class="flex flex-wrap text-sm font-medium text-center text-gray-500 border-b border-gray-200"> | ||
<li class="mx-auto"> | ||
<%= link_to "Budget Calculator", root_path, data: { turbo_stream: true }, class: active_tab == :budget_calculator ? "active-toolbar-tab" : "inactive-toolbar-tab" %> | ||
</li> | ||
<li class="mx-auto"> | ||
<%= link_to "Federal Tax Brackets", federal_tax_brackets_path, data: { turbo_stream: true }, class: active_tab == :federal_tax_brackets ? "active-toolbar-tab" : "inactive-toolbar-tab" %> | ||
</li> | ||
<li class="mx-auto"> | ||
<a href="#" class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50">State Income Tax</a> | ||
</li> | ||
<li class="mx-auto"> | ||
<a href="#" class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50">Incomes</a> | ||
</li> | ||
<li class="mx-auto"> | ||
<a href="#" class="inline-block p-4 rounded-t-lg hover:text-gray-600 hover:bg-gray-50">Fixed Expenses</a> | ||
</li> | ||
</ul> | ||
<% 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
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 +1,2 @@ | ||
<%= render partial: "components/toolbar", locals: { active_tab: :budget_calculator } %> | ||
<%= render partial: "dashboard/index" %> |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<%= turbo_stream.replace "primary_frame", partial: "dashboard/index" %> | ||
<%= turbo_stream.replace "dashboard_toolbar", partial: "components/toolbar", locals: { active_tab: :budget_calculator } %> |
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,17 +1,30 @@ | ||
<%= turbo_frame_tag :federal_tax_brackets do %> | ||
<div class="primary-card"> | ||
<div class=" py-6 sm:px-6 lg:px-8"> | ||
<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> | ||
<%= turbo_frame_tag "primary_frame" do %> | ||
<%= turbo_frame_tag :federal_tax_brackets do %> | ||
<div class="min-h-full"> | ||
<div class="primary-card"> | ||
<div class="mx-auto py-6 sm:px-6 lg:px-8"> | ||
<div class="flex flex-row"> | ||
<h1 class="font-bold text-4xl mr-4">Federal Tax Brackets</h1> | ||
<%= link_to 'New federal tax bracket', new_federal_tax_bracket_path, class: "rounded-lg py-2 px-5 bg-blue-600 text-white block font-medium" %> | ||
</div> | ||
<% end %> | ||
<div> </div> | ||
</div> | ||
</div> | ||
|
||
<%= render @federal_tax_brackets %> | ||
<div class="primary-card"> | ||
<div class="mx-auto py-6 sm:px-6 lg:px-8"> | ||
<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> | ||
</div> | ||
<% end %> | ||
<div> </div> | ||
</div> | ||
|
||
<%= render @federal_tax_brackets %> | ||
</div> | ||
</div> | ||
</div> | ||
</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
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 +1,2 @@ | ||
<%= turbo_stream.replace "primary_frame", partial: "federal_tax_brackets/index" %> | ||
<%= turbo_stream.replace "primary_frame", partial: "federal_tax_brackets/index" %> | ||
<%= turbo_stream.replace "dashboard_toolbar", partial: "components/toolbar", locals: { active_tab: :federal_tax_brackets } %> |