<!-- plugins/exchange/templates/exchange/offer_list.html -->
{% extends 'base.html' %}
{% block title %}Offers{% endblock %}
{% block content %}
<h1>Offers for {{ listing.plant.name }}</h1>
<ul>
  {% for offer in offers %}
  <li>${{ offer.amount }} — {{ offer.status }} <form method="post" action="{{ url_for('exchange.respond_offer', listing_id=listing.id, offer_id=offer.id) }}">{{ form.hidden_tag() }}<button name="status" value="accepted">Accept</button><button name="status" value="rejected">Reject</button></form></li>
  {% endfor %}
</ul>
<a href="{{ url_for('exchange.new_offer', listing_id=listing.id) }}">Make an Offer</a>
{% endblock %}
