-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ZacHooper/dev/add-coffee-options
Dev/add coffee options
- Loading branch information
Showing
7 changed files
with
208 additions
and
7 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
<script src="https://unpkg.com/[email protected]"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.min.css" rel="stylesheet" type="text/css" /> | ||
<script src="https://cdn.tailwindcss.com?plugins=typography,aspect-ratio,line-clamp"></script> | ||
|
||
<script> | ||
tailwind.config = { | ||
plugins: [require("@tailwindcss/typography"), require("daisyui")], | ||
|
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,43 @@ | ||
<form hx-post="/api/coffees" class="grid gap-y-2"> | ||
<label class="form-control w-full max-w" for="name"> | ||
<input id="name" name="name" type="text" class="input input-bordered w-full max-w" placeholder="name" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="roastery"> | ||
<input id="roastery" name="roastery" type="text" class="input input-bordered w-full max-w" | ||
placeholder="Roastery" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="roast_date"> | ||
<input id="roast_date" name="roast_date" type="date" class="input input-bordered w-full max-w" | ||
placeholder="Roast Date" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="roast_level"> | ||
<input id="roast_level" name="roast_level" type="text" class="input input-bordered w-full max-w" | ||
placeholder="Roast Level (light, medium, dark)" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="origin"> | ||
<input id="origin" name="origin" type="text" class="input input-bordered w-full max-w" placeholder="Origin" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="region"> | ||
<input id="region" name="region" type="text" class="input input-bordered w-full max-w" placeholder="Region" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="farm"> | ||
<input id="farm" name="farm" type="text" class="input input-bordered w-full max-w" placeholder="Farm" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="altitude"> | ||
<input id="altitude" name="altitude" type="number" class="input input-bordered w-full max-w" | ||
placeholder="Altitude" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="variety"> | ||
<input id="variety" name="variety" type="text" class="input input-bordered w-full max-w" | ||
placeholder="Variety" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="processing-method"> | ||
<input id="processing-method" name="processing-method" type="text" class="input input-bordered w-full max-w" | ||
placeholder="Processing Method" /> | ||
</label> | ||
<label class="form-control w-full max-w" for="tasting-notes"> | ||
<input id="tasting-notes" name="tasting-notes" type="text" class="input input-bordered w-full max-w" | ||
placeholder="Tasting Notes. Separate with commas" /> | ||
</label> | ||
<button class="btn btn-primary w-full">Add</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<div class="flex flex-col justify-center h-screen"> | ||
<div class="collapse collapse-plus"> | ||
<input type="radio" name="my-accordion-3" /> | ||
<div class="collapse-title text-xl font-medium"> | ||
Add new coffee to pantry | ||
</div> | ||
<div class="collapse-content overflow-y-auto"> | ||
{% include 'new_coffee_form.html' %} | ||
</div> | ||
</div> | ||
<div class=" collapse collapse-plus"> | ||
<input type="radio" name="my-accordion-3" checked="checked" /> | ||
<div class="collapse-title text-xl font-medium"> | ||
Coffee's in the pantry | ||
</div> | ||
<div class="collapse-content p-0 overflow-y-auto"> | ||
<div class="overflow-x-auto max-w-sm"> | ||
<table class="table table-auto divide-red-500"> | ||
<!-- head --> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Roast Date</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<!-- row 1 --> | ||
{% for coffee in coffees %} | ||
<tr> | ||
<td class="text-xs">{{ coffee.name }}, {{ coffee.roastery }}</td> | ||
<td>{{ coffee.roast_date }}</td> | ||
<td class="join"> | ||
<button class="btn btn-primary join-item">Refill</button> | ||
<button class="btn btn-secondary join-item" hx-delete="/api/coffees/{{ coffee.uuid }}" | ||
hx-target="body" hx-swap="true">Empty</button> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="flex flex-grow items-end m-2"> | ||
<button class="btn btn-primary w-full" hx-get="/" hx-target="body" hx-push-url="true">Make a | ||
Review</button> | ||
</div> | ||
|
||
|
||
|
||
</div> |
Empty file.
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