<?php
// test_hold.php - A simple form to test putting a transfer on hold
require_once 'includes/auth_check.php';

// Get transfer ID from query string
$transfer_id = isset($_GET['id']) ? (int)$_GET['id'] : 0;

if (!$transfer_id) {
    echo "No transfer ID provided";
    exit;
}
?>
<!DOCTYPE html>
<html>
<head>
    <title>Test Hold Action</title>
</head>
<body>
    <h1>Test Hold Action</h1>
    <form method="post" action="hold_wire.php">
        <input type="hidden" name="id" value="<?php echo $transfer_id; ?>">
        <div>
            <label for="reason">Reason for Hold:</label>
            <input type="text" name="reason" id="reason" required>
        </div>
        <button type="submit">Put on Hold</button>
    </form>
</body>
</html>
