-
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
5 changed files
with
67 additions
and
66 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,11 +1,25 @@ | ||
<%= turbo_frame_tag :incomes do %> | ||
<h3>Net Income</h3> | ||
<div class="grid grid-cols-5"> | ||
<% income_headings = ["Income Type", "Rate", "Hours", "Weekly Gross"] %> | ||
<% income_headings.each do |income_heading| %> | ||
<div class="px-5"><strong><%= income_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
<div class="min-h-full"> | ||
<div class="primary-card"> | ||
<div class="mx-auto py-6 sm:px-6 lg:px-8"> | ||
<strong>Incomes</strong> | ||
<div class="mt-2"> | ||
<%= link_to "New Income", new_income_path, data: { turbo_frame: :incomes }, class: "btn btn-primary" %> | ||
</div> | ||
|
||
<h3>Net Income</h3> | ||
|
||
<%= render @incomes %> | ||
<div class="grid grid-cols-5"> | ||
<% income_headings = ["Income Type", "Rate", "Hours", "Weekly Gross"] %> | ||
<% income_headings.each do |income_heading| %> | ||
<div class="px-5"> | ||
<strong><%= income_heading %></strong> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<%= render @incomes %> | ||
</div> | ||
</div> | ||
</div> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
<p style="color: green"><%= notice %></p> | ||
|
||
<h1>Incomes</h1> | ||
|
||
<div id="incomes"> | ||
<% @incomes.each do |income| %> | ||
<%= render income %> | ||
<p> | ||
<%= link_to "Show this income", income %> | ||
</p> | ||
<div class="w-full"> | ||
<% if notice.present? %> | ||
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p> | ||
<% end %> | ||
</div> | ||
|
||
<%= link_to "New income", new_income_path %> | ||
<%= render partial: "incomes/index" %> | ||
</div> |
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,39 +1,41 @@ | ||
<%= turbo_frame_tag "taxed_incomes" do %> | ||
<h3>Gross Income Annual</h3> | ||
<div class="grid grid-cols-5"> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "Fica Tax", "State Tax", "Annual"] %> | ||
<% fixed_headings.each do |fixed_heading| %> | ||
<div class="px-5"><strong><%= fixed_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
<div class="mx-auto pb-6 sm:px-6 lg:px-8"> | ||
<h3>Gross Income Annual</h3> | ||
<div class="grid grid-cols-5"> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "Fica Tax", "State Tax", "Annual"] %> | ||
<% fixed_headings.each do |fixed_heading| %> | ||
<div class="px-5"><strong><%= fixed_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Salary</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed, annual: true } %> | ||
</div> | ||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Salary</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed, annual: true } %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Hourly</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed, annual: true } %> | ||
</div> | ||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Hourly</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed, annual: true } %> | ||
</div> | ||
|
||
<br> | ||
<br> | ||
|
||
<h3>Gross Income Bi-Weekly</h3> | ||
<div class="grid grid-cols-5"> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "Fica Tax", "State Tax", "Bi-weekly"] %> | ||
<% fixed_headings.each do |fixed_heading| %> | ||
<div class="px-5"><strong><%= fixed_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
<h3>Gross Income Bi-Weekly</h3> | ||
<div class="grid grid-cols-5"> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "Fica Tax", "State Tax", "Bi-weekly"] %> | ||
<% fixed_headings.each do |fixed_heading| %> | ||
<div class="px-5"><strong><%= fixed_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Salary</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed, annual: false } %> | ||
</div> | ||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Salary</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed, annual: false } %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Hourly</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed, annual: false } %> | ||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Hourly</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed, annual: false } %> | ||
</div> | ||
</div> | ||
<% end %> |