Yu-Gi-Oh! Deck Building and Card Inventory Management web interface written in Common Lisp, utilizing HTMX.
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.
|
- {% 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 %}
|