-
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
10 changed files
with
22 additions
and
20 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
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,10 +1,12 @@ | ||
<%= turbo_frame_tag dom_id(fixed_expense) do %> | ||
<div class="grid grid-cols-6 pb-1"> | ||
<div class="grid grid-cols-5 pb-1"> | ||
<% attributes = [fixed_expense.expense_name, humanized_money_with_symbol(fixed_expense.annual_cost), humanized_money_with_symbol(fixed_expense.monthly_cost), humanized_money_with_symbol(fixed_expense.bi_weekly_cost)] %> | ||
<% attributes.each do |attribute| %> | ||
<div class="px-5"><%= attribute %></div> | ||
<% end %> | ||
<div class=""><%= link_to "Edit", edit_fixed_expense_path(fixed_expense), class:"btn btn-primary" %></div> | ||
<div class=""><%= button_to "Delete", fixed_expense_path(fixed_expense), method: :delete, class:"btn btn-danger" %></div> | ||
<div class="flex"> | ||
<%= link_to "Edit", edit_fixed_expense_path(fixed_expense), class:"btn btn-primary" %> | ||
<%= button_to "Delete", fixed_expense_path(fixed_expense), method: :delete, class:"btn btn-danger ml-1" %> | ||
</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
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
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,17 @@ | ||
<strong>Gross Income</strong> | ||
<div class="grid grid-cols-6"> | ||
<div class="grid grid-cols-5"> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "State Tax", "Annual", "Bi-weekly"] %> | ||
<% fixed_headings.each do |fixed_heading| %> | ||
<div class="px-5"><strong><%= fixed_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="grid grid-cols-6"> | ||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Salary</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed} %> | ||
</div> | ||
|
||
<div class="grid grid-cols-6"> | ||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Hourly</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed} %> | ||
</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,4 +1,4 @@ | ||
<div class="grid grid-cols-6"> | ||
<div class="grid grid-cols-5"> | ||
<div class="px-5"> | ||
<strong>Total</strong> | ||
</div> | ||
|