You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
586 B
17 lines
586 B
|
|
<form hx-post="/item/{{item_id}}/adjustment/sale" hx-target="this" hx-swap="outerHTML" >
|
|
<div>
|
|
<label for="amount">Amount</label>
|
|
<input id="amount" name="amount" type="number" step="0.01" required
|
|
{% if !amount_error.is_empty() -%}
|
|
aria-invalid="true"
|
|
aria-describedby="invalid-amount"
|
|
{% endif -%}
|
|
/>
|
|
{% if !amount_error.is_empty() -%}
|
|
<small id="invalid-amount">{{ amount_error }}</small>
|
|
{% endif -%}
|
|
</div>
|
|
<button class="btn primary">Record Sale</button>
|
|
</form>
|