clubmanager/templates/drinks.rs.html

38 lines
933 B
HTML
Raw Normal View History

2023-09-30 21:51:11 +00:00
@use super::base_html;
@(shift_id: u32)
@:base_html({
2023-10-19 10:16:16 +00:00
<form hx-swap="outerHTML" hx-post="/api/drinks">
<fieldset>
<input hidden required type="radio" id="two" name="price" value="2" />
<label for="two">$2</label>
2023-09-30 21:51:11 +00:00
2023-10-19 10:16:16 +00:00
<input hidden type="radio" id="three" name="price" value="3" />
<label for="three">$3</label>
2023-09-30 21:51:11 +00:00
2023-10-19 10:16:16 +00:00
<input hidden type="radio" id="five" name="price" value="5" />
<label for="five">$5</label>
2023-09-30 21:51:11 +00:00
2023-10-19 10:16:16 +00:00
<input hidden type="radio" id="eight" name="price" value="8" />
<label for="eight">$8</label>
2023-09-30 21:51:11 +00:00
2023-10-19 10:16:16 +00:00
<input hidden type="radio" id="fifteen" name="price" value="15" />
<label for="fifteen">$15</label>
</fieldset>
2023-09-30 21:51:11 +00:00
2023-10-19 10:16:16 +00:00
<div>
<label for="quantity">Quantity: </label>
<input type="number" id="quantity" name="quantity" step="1" value="1" />
2023-09-30 21:51:11 +00:00
2023-10-19 10:16:16 +00:00
<input type="hidden" id="shift_id" name="shift_id" value="@shift_id" />
<div>
2023-09-30 21:51:11 +00:00
<button type="submit">
submit
</button>
</form>
})