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