{% extends "base.html" %}
{% block title %}User Details{% endblock %}
{% block content %}
<div class="container mt-4">
    <h2>User Details</h2>
    <table class="table table-bordered">
        <tr><th>ID</th><td>{{ user.id }}</td></tr>
        <tr><th>Username</th><td>{{ user.username }}</td></tr>
        <tr><th>First Name</th><td>{{ user.first_name }}</td></tr>
        <tr><th>Last Name</th><td>{{ user.last_name }}</td></tr>
        <tr><th>Email</th><td>{{ user.email }}</td></tr>
        <tr><th>Role</th><td>{{ user.role }}</td></tr>
        <tr><th>Banned</th><td>{% if user.banned %}Yes{% else %}No{% endif %}</td></tr>
    </table>
    <a href="{% url 'user-management' %}" class="btn btn-secondary">Back</a>
    <a href="{% url 'user-edit' user.id %}" class="btn btn-warning">Edit</a>
</div>
{% endblock %}
