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.
19 lines
706 B
19 lines
706 B
|
|
<form hx-post="/item/{{item_id}}/adjustment/sale" hx-target="this" hx-swap="outerHTML" >
|
|
<div class="mb-3">
|
|
<label for="amount" class="form-label">Amount</label>
|
|
<input id="amount" class="form-control" 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" class="invalid-feedback">{{ amount_error }}</small>
|
|
{% endif -%}
|
|
</div>
|
|
<div class="mb-3">
|
|
<button class="btn btn-primary">Record Sale</button>
|
|
</div>
|
|
</form>
|