{% extends "base.html" %}

{% block content %}
<div class="container mt-5">
    <div class="card">
        <div class="card-header">
            <h1 class="card-title">Approve Bid</h1>
        </div>
        <div class="card-body">
            <p><strong>Tender:</strong> {{ bid.tender.title }}</p>
            <p><strong>Company:</strong> {{ bid.company.name }}</p>
            <p><strong>Amount:</strong> ${{ bid.amount }}</p>
            <form method="post">
                {% csrf_token %}
                {{ form.as_p }}
                <button type="submit" class="btn btn-primary">Submit Approval</button>
            </form>
        </div>
        <div class="card-footer">
            <a href="{% url 'tender_detail' bid.tender.id %}" class="btn btn-secondary">Back to Tender</a>
        </div>
    </div>
</div>
{% endblock %}
