Use date picker for journal and goals index date.

This commit is contained in:
Christopher C. Wells 2021-04-10 20:06:29 -07:00
parent 232f5ddfe8
commit 232e2fc6ac
3 changed files with 21 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,16 @@
</svg>
</a>
</div>
<div class="text-base text-gray-500">{{ $date->format('D, j M Y') }}</div>
<div class="text-base text-gray-500">
<form x-data method="GET" action="{{ route('goals.index') }}">
<x-inputs.input name="date"
type="date"
class="border-0 shadow-none p-0 text-center"
:value="$date->toDateString()"
x-on:change="$el.submit();"
required />
</form>
</div>
<div>
<a class="text-gray-500 hover:text-gray-700 hover:border-gray-300"
href="{{ route(Route::current()->getName(), ['date' => $date->copy()->addDay(1)->toDateString()]) }}">

View File

@ -13,7 +13,16 @@
</svg>
</a>
</div>
<div class="text-base text-gray-500">{{ $date->format('D, j M Y') }}</div>
<div class="text-base text-gray-500">
<form x-data method="GET" action="{{ route('journal-entries.index') }}">
<x-inputs.input name="date"
type="date"
class="border-0 shadow-none p-0 text-center"
:value="$date->toDateString()"
x-on:change="$el.submit();"
required />
</form>
</div>
<div>
<a class="text-gray-500 hover:text-gray-700 hover:border-gray-300"
href="{{ route(Route::current()->getName(), ['date' => $date->copy()->addDay(1)->toDateString()]) }}">