<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>List Commands</title>
</head>

<body>
    <h1>Custom Commands</h1>
    <ul>
        {% for command in commands %}
        <li>
            <strong>{{ command.command_name }}</strong>: {{ command.response }}
            <form action="{{ url_for('delete_command', command_id=command.id) }}" method="POST" style="display:inline;">
                <button type="submit">Delete</button>
            </form>
        </li>
        {% endfor %}
    </ul>
    <a href="{{ url_for('home') }}">Back to Home</a>
</body>

</html>