{% extends "base.html" %}
{% block title %}Approve Adjustment{% endblock %}
{% block content %}
<div class="max-w-2xl space-y-4">
  <h1 class="text-2xl font-bold">Review Adjustment Request</h1>
  <div class="card bg-base-100 border border-base-200 p-6">
    <p><strong>Product:</strong> {{ adjustment.product }}</p>
    <p><strong>Location:</strong> {{ adjustment.location|default:"-" }}</p>
    <p><strong>Quantity:</strong> {{ adjustment.quantity }}</p>
    <p><strong>Reason:</strong> {{ adjustment.get_reason_display }}</p>
    <p><strong>Note:</strong> {{ adjustment.note|default:"-" }}</p>
  </div>
  <form method="post" class="flex gap-3">
    {% csrf_token %}
    <button name="action" value="approve" class="btn btn-success">Approve</button>
    <button name="action" value="reject" class="btn btn-error">Reject</button>
  </form>
</div>
{% endblock %}
