62 lines
1.6 KiB
HTML
62 lines
1.6 KiB
HTML
|
{% if item %}
|
||
|
<form id="variant-result-form-{{ id }}" name="variant-result-form-{{ id }}">
|
||
|
{{ token | safe }}
|
||
|
<input type="hidden" name="set-id" value="{{ item.item-id }}">
|
||
|
<input type="hidden" name="variant-id" value="{{ item.variant.id }}">
|
||
|
</form>
|
||
|
|
||
|
<div class="field is-horizontal">
|
||
|
<div class="field-body">
|
||
|
<div class="field">
|
||
|
<label class="label" for="buy-price">
|
||
|
Buy Price
|
||
|
</label>
|
||
|
<div class="control">
|
||
|
<input class="input"
|
||
|
form="variant-result-form-{{ id }}"
|
||
|
name="buy-price"
|
||
|
id="buy-price"
|
||
|
value="{{ item.buy-price }}"
|
||
|
type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="field">
|
||
|
<label class="label" for="sell-price">
|
||
|
Sell Price
|
||
|
</label>
|
||
|
<div class="control">
|
||
|
<input class="input"
|
||
|
form="variant-result-form-{{ id }}"
|
||
|
name="sell-price"
|
||
|
id="sell-price"
|
||
|
value="{{ item.sell-price }}"
|
||
|
type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="field">
|
||
|
<label class="label" for="qty">
|
||
|
Qty
|
||
|
</label>
|
||
|
<div class="control">
|
||
|
<input class="input"
|
||
|
form="variant-result-form-{{ id }}"
|
||
|
name="qty"
|
||
|
id="qty"
|
||
|
value="{{ item.qty }}"
|
||
|
type="text">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="buttons">
|
||
|
<button class="button is-link"
|
||
|
hx-include="[name='variant-result-form-{{ id }}']"
|
||
|
hx-patch="/inventory/patch"
|
||
|
type="submit">Save</button>
|
||
|
</div>
|
||
|
{% endif %}
|