{% extends 'adminapp/master.html' %}
{% block content %}
<div class="container mt-5">
    <h2 class="text-center">Reply to Feedback</h2>
    <div class="card p-3">
        <p><strong>User:</strong> {{ feedback.user.username }}</p>
        <p><strong>Message:</strong> {{ feedback.message }}</p>
        <p><strong>Email:</strong> {{ feedback.user.email }}</p>
        <form method="post">
            {% csrf_token %}
            <div class="form-group">
                <label for="reply_message">Your Reply</label>
                <textarea name="reply_message" id="reply_message" class="form-control" required></textarea>
            </div>
            <button type="submit" class="btn btn-success mt-2">Send Reply</button>
            <a href="{% url 'managefeedback' %}" class="btn btn-secondary mt-2">Cancel</a>
        </form>
    </div>
</div>
{% endblock %}
