From 107995d3433fd542078a49a21866d8803aed8183 Mon Sep 17 00:00:00 2001 From: Benjamin Randolph <104036158+neb417@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:52:06 -0700 Subject: [PATCH] Style cards on dashboard. (#55) --- app/views/components/_income_switch.erb | 3 +-- app/views/dashboard/_index.html.erb | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/views/components/_income_switch.erb b/app/views/components/_income_switch.erb index fe8154a..8459cc0 100644 --- a/app/views/components/_income_switch.erb +++ b/app/views/components/_income_switch.erb @@ -1,7 +1,6 @@ <%= form_with url: income_switch_url, local: true do |form| %> <% end %> \ No newline at end of file diff --git a/app/views/dashboard/_index.html.erb b/app/views/dashboard/_index.html.erb index 1385eff..7d544af 100644 --- a/app/views/dashboard/_index.html.erb +++ b/app/views/dashboard/_index.html.erb @@ -2,8 +2,12 @@
+
+ Budget Calculator +
+
-

Final Budget

+
Switch Income Type
Savings Rate %
Investing Rate %
@@ -62,8 +66,10 @@
<%= turbo_frame_tag "income_header_frame" do %> -

Income

- <%= link_to "New Income", new_income_path, data: { turbo_frame: :incomes }, class: "btn btn-primary" %> + Incomes +
+ <%= link_to "New Income", new_income_path, data: { turbo_frame: :incomes }, class: "btn btn-primary" %> +
<% end %>
@@ -80,8 +86,10 @@
<%= turbo_frame_tag "fixed_expense_header_frame" do %> -

Fixed Expenses

- <%= link_to "New Fixed Expense", new_fixed_expense_path, data: { turbo_frame: :fixed_expenses }, class: "btn btn-primary" %> + Fixed Expenses +
+ <%= link_to "New Fixed Expense", new_fixed_expense_path, data: { turbo_frame: :fixed_expenses }, class: "btn btn-primary" %> +
<% end %> <%= render "fixed_expenses/index" %>