<!-- plugins/exchange/templates/exchange/listing_detail.html -->
{% extends 'base.html' %}
{% block title %}Listing Detail{% endblock %}
{% block content %}
<h1>{{ listing.plant.name }} — {{ listing.type|capitalize }}</h1>
<p>Status: {{ listing.status }}</p>
{% if listing.bin_price %}<p>Price: ${{ listing.bin_price }}</p>{% endif %}
{# TODO: show auction info, trade items, offers list, etc. #}
<a href="{{ url_for('exchange.edit_listing', listing_id=listing.id) }}">Edit</a>
<form method="post" action="{{ url_for('exchange.close_listing', listing_id=listing.id) }}">
  <button type="submit">Close Listing</button>
</form>
{% endblock %}
