diff --git a/app/views/expenses/_expense.html.erb b/app/views/expenses/_expense.html.erb index 83e9896..2b4a868 100644 --- a/app/views/expenses/_expense.html.erb +++ b/app/views/expenses/_expense.html.erb @@ -1,32 +1,80 @@ -
- Description: - <%= expense.description %> -
+Payment Amount
+<%= number_to_currency(expense.payment) %>
+Monthly Amount
+<%= number_to_currency(expense.monthly) %>
+- Payment: - <%= expense.payment %> -
- -- Period: - <%= expense.period %> -
- -- Credit card: - <%= expense.credit_card %> -
- -- Estimated: - <%= expense.estimated %> -
+Details
+A brief description of the expense
+The payment amount for this billing period
+How often this expense is billed
+This expense is paid by credit card
+This amount is an estimate
+Update the details for this expense.
+<%= notice %>
++ + <%= notice %> +
+Description | +Payment | +Monthly | +Details | +Actions | +
---|---|---|---|---|
+ <%= expense.description %>
+ |
+ + <%= number_to_currency(expense.payment) %> + | ++ <%= number_to_currency(expense.monthly) %> + | +
+
+
+ <%= expense.period.downcase %>
+
+ <% if expense.credit_card %>
+ credit card
+ <% end %>
+ <% if expense.estimated %>
+ estimated
+ <% end %>
+
+ |
+ + <%= link_to "View", expense, class: "text-blue-600 hover:text-blue-900 mr-3" %> + <%= link_to "Edit", edit_expense_path(expense), class: "text-indigo-600 hover:text-indigo-900" %> + | +
Payment
+<%= number_to_currency(expense.payment) %>
+Monthly
+<%= number_to_currency(expense.monthly) %>
+Get started by creating a new expense.
+Add a new recurring expense to track your spending.
+<%= notice %>
- <% end %> - - <%= render @expense %> - - <%= link_to 'Edit this expense', edit_expense_path(@expense), class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %> -+ + <%= notice %> +