<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Delete Item</title>
</head>
<body align="center">
    <h2>Are you sure you want to delete the item?</h2>
    
    <!-- Confirmation form -->
    <form action='' method="post">
        <br>
        <input type="submit" value="Delete">
        <button type="button" onclick="window.location.href='/'">Cancel</button>
    </form>

    <!-- Display a preview of the item -->
    <table border="1" align="center">
        <thead>
            <tr>
                <th>Attribute</th>
                <th>Value</th>
            </tr>
        </thead>
        <tbody>
            {% for attrib in item_attributes %}
                <tr>
                    <td>{{ attrib.display_name }}</td>
                    <td>{{ item[attrib.attrib_name] }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</body>
</html>