Add buttons for creating budgets/earnings/spendings in dashboard view
MODIFY
public/style.css
public/style.css
@@ -200,6 +200,15 @@ input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, sel
color: #FFF;
}
+.button.small {
+ background: none;
+ color: #4880FE;
+ border: 1px solid #4880FE;
+ border-radius: 4px;
+ font-size: 14px;
+ padding: 8px 16px;
+}
+
input[type=submit] {
border: none;
}

MODIFY
resources/views/dashboard/index.blade.php
resources/views/dashboard/index.blade.php
</div>
</div>
</div>
- <h2 class="spacing-top-large spacing-bottom-medium">Budgets</h2>
+ <div class="row spacing-top-large spacing-bottom-medium">
+ <div class="column tight align-middle">
+ <h2>Budgets</h2>
+ </div>
+ <div class="column tight align-middle">
+ <a class="button small" href="/budgets/create">Create</a>
+ </div>
+ </div>
@if ($budgets->count())
<ul class="box">
@foreach ($budgets as $budget)
@endif
<div class="row spacing-top-large">
<div class="column">
- <h2 class="spacing-bottom-medium">Earnings</h2>
+ <div class="row spacing-bottom-medium">
+ <div class="column tight align-middle">
+ <h2>Earnings</h2>
+ </div>
+ <div class="column tight align-middle">
+ <a class="button small" href="/earnings/create">Create</a>
+ </div>
+ </div>
@if ($earnings->count())
<ul class="box">
@foreach ($earnings as $earning)
@endif
</div>
<div class="column">
- <h2 class="spacing-bottom-medium">Spendings</h2>
+ <div class="row spacing-bottom-medium">
+ <div class="column tight align-middle">
+ <h2>Spendings</h2>
+ </div>
+ <div class="column tight align-middle">
+ <a class="button small" href="/spendings/create">Create</a>
+ </div>
+ </div>
@if ($spendings->count())
<ul class="box">
@foreach ($spendings as $spending)

Add buttons for creating budgets/earnings/spendings in dashboard view