-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
5 changed files
with
63 additions
and
24 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<form class="border-2 border-black p-2" method="POST" action="{{ route('journal-entries.store') }}"> | ||
@csrf | ||
<input type="hidden" name="ingredients[date][0]" id="date" value="{{ now()->format('Y-m-d') }}"> | ||
<input type="hidden" name="ingredients[amount][0]" value="1"> | ||
<input type="hidden" name="ingredients[id][0]" value="{{ $journalable->getKey() }}"> | ||
<input type="hidden" name="ingredients[type][0]" value="{{$journalable::class}}"> | ||
<input type="hidden" name="ingredients[unit][0]" value="serving"> | ||
<x-inputs.select class="px-4 py-1 my-2 w-full" name="ingredients[meal][0]" | ||
:options="Auth::user()->meals_enabled->toArray()" | ||
:selectedValue="old('meal')" | ||
:hasError="$errors->has('meal')" | ||
required> | ||
<option value=""></option> | ||
</x-inputs.select> | ||
<button class="px-4 py-2 w-full border border-transparent rounded-md font-semibold text-xs text-center uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition ease-in-out duration-150 cursor-pointer text-white bg-green-800 hover:bg-green-700 active:bg-green-900 focus:border-green-900 ring-green-300" type="submit"> | ||
Log | ||
</button> | ||
</form> |
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