<!-- plugins/exchange/templates/exchange/listing_form.html -->
{% extends 'base.html' %}
{% block title %}{{ form.type.data|capitalize }} Listing{% endblock %}
{% block content %}
<h1>{{ form.type.data|capitalize }} Listing</h1>
<form method="post">
  {{ form.hidden_tag() }}
  {{ form.plant_id.label }} {{ form.plant_id() }}<br>
  {{ form.owner_actor_type.label }} {{ form.owner_actor_type() }}<br>
  {{ form.owner_actor_id.label }} {{ form.owner_actor_id() }}<br>
  {{ form.type.label }} {{ form.type() }}<br>
  {# include partial _type_fields.html here to render type-specific fields #}
  {% include 'exchange/_type_fields.html' %}
  {{ form.status.label }} {{ form.status() }}<br>
  <button type="submit">Save</button>
</form>
{% endblock %}
