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.
44 lines
1.5 KiB
44 lines
1.5 KiB
|
|
<form hx-post="/item/{{item_id}}/adjustment/positive" hx-target="this" hx-swap="outerHTML" >
|
|
<div class="row">
|
|
<div class="col">
|
|
<input type="number"
|
|
id="amount"
|
|
name="amount"
|
|
step="0.01"
|
|
class="form-control"
|
|
placeholder="Amount"
|
|
aria-label="amount"
|
|
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="col">
|
|
<input type="text"
|
|
id="price"
|
|
name="price"
|
|
placeholder="Price"
|
|
class="form-control"
|
|
aria-label="price"
|
|
required
|
|
{% if !price_error.is_empty() -%}
|
|
aria-invalid="true"
|
|
aria-describedby="invalid-price"
|
|
{% endif -%}
|
|
/>
|
|
{% if !price_error.is_empty() -%}
|
|
<small id="invalid-price" class="invalid-feedback">{{ price_error }}</small>
|
|
{% endif -%}
|
|
</div>
|
|
<div class="col">
|
|
<button class="btn btn-primary">Add</button>
|
|
</div>
|
|
</div>
|
|
</form>
|