33 lines
813 B
HTML
33 lines
813 B
HTML
@use super::base_html;
|
|
|
|
@(shift_id: u32)
|
|
|
|
@:base_html({
|
|
|
|
<form action="/api/drinks" method="post">
|
|
<input required type="radio" id="two" name="price" value="2" />
|
|
<label for="two">$2</label>
|
|
|
|
<input type="radio" id="three" name="price" value="3" />
|
|
<label for="three">$3</label>
|
|
|
|
<input type="radio" id="five" name="price" value="5" />
|
|
<label for="five">$5</label>
|
|
|
|
<input type="radio" id="eight" name="price" value="8" />
|
|
<label for="eight">$8</label>
|
|
|
|
<input type="radio" id="fifteen" name="price" value="15" />
|
|
<label for="fifteen">$15</label>
|
|
|
|
<label for="quantity">Quantity: </label>
|
|
<input type="number" id="quantity" name="quantity" value="1" />
|
|
|
|
<input type="hidden" id="shift_id" name="shift_id" value="@shift_id" />
|
|
|
|
<button type="submit">
|
|
submit
|
|
</button>
|
|
</form>
|
|
|
|
})
|