<!-- plugins/exchange/templates/exchange/_type_fields.html -->
{# Render form fields based on form.type.data #}
{% if form.type.data == 'sale' %}
  {{ form.bin_price.label }} {{ form.bin_price() }}<br>
  {{ form.allow_offers.label }} {{ form.allow_offers() }}<br>
{% elif form.type.data == 'auction' %}
  {{ form.auction_start.label }} {{ form.auction_start() }}<br>
  {{ form.auction_reserve.label }} {{ form.auction_reserve() }}<br>
  {{ form.auction_ends_at.label }} {{ form.auction_ends_at() }}<br>
{% elif form.type.data == 'trade' %}
  {{ form.trade_items.label }} {{ form.trade_items() }}<br>
{% elif form.type.data == 'loan' %}
  {{ form.loan_return_date.label }} {{ form.loan_return_date() }}<br>
  {{ form.rental_rate.label }} {{ form.rental_rate() }}<br>
{% elif form.type.data == 'consignment' %}
  {{ form.consignment_split.label }} {{ form.consignment_split() }}<br>
{% elif form.type.data == 'swap' %}
  {{ form.swap_batch_id.label }} {{ form.swap_batch_id() }}<br>
{% endif %}
