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.
inventory-app/templates/item/adjustment/positive-adjustment-form.html

48 lines
2.0 KiB

<form hx-post="/item/{{item_id}}/adjustment/positive"
hx-target="this" hx-swap="outerHTML">
<div class="mb-5">
<label for="amount" class="block mb-2 text-sm font-medium">Amount</label>
<input
type="number"
id="amount"
name="amount"
class="border border-neutral-900 text-neutral-900 dark:text-slate-100 text-sm rounded-lg focus:ring-paynes-gray focus:border-paynes-gray block max-w-56 p-2.5"
step="0.01"
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="mt-2 text-sm text-cerise">
{{ amount_error }}
</small>
{% endif -%}
</div>
<div class="mb-5">
<label for="price" class="block mb-2 text-sm font-medium">Price</label>
<input type="text"
id="price"
name="price"
class="border border-neutral-900 text-neutral-900 dark:text-slate-100 text-sm rounded-lg focus:ring-paynes-gray focus:border-paynes-gray block max-w-56 p-2.5"
placeholder="Price"
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="mt-2 text-sm text-cerise">{{ price_error }}</small>
{% endif -%}
</div>
<div class="mb-5">
<button class="text-slate-100 bg-english-violet hover:bg-dark-cyan focus:ring-4 focus:ring-dark-cyan font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 focus:outline-none">Add</button>
</div>
</form>

Powered by TurnKey Linux.