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.
29 lines
985 B
29 lines
985 B
|
|
<form hx-post="/item/{{item_id}}/adjustment/new-stock" hx-target="this" hx-swap="outerHTML" >
|
|
<div>
|
|
<label for="amount">Amount</label>
|
|
<input id="amount" name="amount" type="number" 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>
|
|
<div>
|
|
<label for="price">Price</label>
|
|
<input id="price" name="price" required
|
|
{% if !price_error.is_empty() -%}
|
|
aria-invalid="true"
|
|
aria-describedby="invalid-price"
|
|
{% endif -%}
|
|
/>
|
|
{% if !price_error.is_empty() -%}
|
|
<small id="invalid-price">{{ price_error }}</small>
|
|
{% endif -%}
|
|
</div>
|
|
<button class="btn primary">Add Stock</button>
|
|
</form>
|