clubmanager/templates/drinks.rs.html

56 lines
2.8 KiB
HTML
Raw Normal View History

2023-09-30 21:51:11 +00:00
@use super::base_html;
2023-11-05 15:16:44 +00:00
@use super::components::return_to_main_html;
2023-09-30 21:51:11 +00:00
@(shift_id: u32)
@:base_html({
2023-11-05 15:16:44 +00:00
<div hx-swap="outerHTML" hx-target="this" class="h-full">
<div class="fixed right-0 top-0 pr-4 pt-4">
@:return_to_main_html()
</div>
2023-11-06 19:14:04 +00:00
<form hx-post="/api/drinks" class="h-full flex items-center justify-center gap-28">
2023-11-05 15:16:44 +00:00
<fieldset class="flex flex-col text-4xl text-center overflow-hidden border border-black rounded-2xl">
<input hidden required type="radio" id="two" name="price" value="2" class="peer/two" />
<label class="p-4 hover:bg-blue-300 peer-checked/two:bg-blue-400" for="two">$2</label>
2023-09-30 21:51:11 +00:00
2023-11-05 15:16:44 +00:00
<input hidden type="radio" id="three" name="price" value="3" class="peer/three" />
<label class="p-4 hover:bg-blue-300 peer-checked/three:bg-blue-400" for="three">$3</label>
2023-09-30 21:51:11 +00:00
2023-11-05 15:16:44 +00:00
<input hidden type="radio" id="five" name="price" value="5" class="peer/five" />
<label class="p-4 hover:bg-blue-300 peer-checked/five:bg-blue-400" for="five">$5</label>
2023-09-30 21:51:11 +00:00
2023-11-05 15:16:44 +00:00
<input hidden type="radio" id="eight" name="price" value="8" class="peer/eight" />
<label class="p-4 hover:bg-blue-300 peer-checked/eight:bg-blue-400" for="eight">$8</label>
2023-09-30 21:51:11 +00:00
2023-11-05 15:16:44 +00:00
<input hidden type="radio" id="fifteen" name="price" value="15" class="peer/fifteen" />
<label class="p-4 hover:bg-blue-300 peer-checked/fifteen:bg-blue-400" for="fifteen">$15</label>
</fieldset>
2023-09-30 21:51:11 +00:00
2023-11-05 15:16:44 +00:00
<div class="flex flex-col items-center gap-24">
2023-11-05 10:26:14 +00:00
<div>
2023-11-05 15:16:44 +00:00
<div>
<label for="quantity" class="block mb-2 text-sm font-medium text-gray-900">Quantity: </label>
<div class="flex flex-col">
2023-11-06 19:14:04 +00:00
<button type="button" onclick="this.nextElementSibling.stepUp()"
class="py-4 w-16 text-2xl font-medium text-gray-900 focus:outline-none bg-white rounded-t-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200">+1</button>
<input type="number" id="quantity" name="quantity" step="1" value="1"
class="bg-gray-50 border border-gray-300 text-gray-900 w-16 text-center text-3xl focus:ring-blue-500 focus:border-blue-500 block p-2.5" />
<button type="button" onclick="this.previousElementSibling.stepDown()"
class="py-4 w-16 text-2xl font-medium text-gray-900 focus:outline-none bg-white rounded-b-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-200">-1</button>
2023-11-05 15:16:44 +00:00
</div>
2023-11-05 11:49:21 +00:00
</div>
<input type="hidden" id="shift" name="shift" value="@shift_id" />
2023-11-05 10:26:14 +00:00
</div>
2023-11-06 19:14:04 +00:00
<button type="submit"
class="focus:outline-none text-white bg-green-700 hover:bg-green-800 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800">
2023-11-05 15:16:44 +00:00
Submit
</button>
</div>
</form>
</div>
2023-09-30 21:51:11 +00:00
})