{% extends 'auth_layout.html' %}
{% block content %}
{% if context.message %}
    <div class="row">
        <div class="col text-center text-primary">
            <i class="ri-error-warning-fill"></i> {{ context.message }}
        </div>
    </div>
{% endif %}
<div class="row">
    <div class="col">
        <a href="{{ url_for('admin_users') }}" class="btn btn-secondary float-end">Back</a>
        <h3><i class="ri-shield-user-line"></i> Edit Admin User</h3>
    </div>
</div>
<div class="row">
    <div class="col-sm-12 col-md-6 col-lg-4">
        <form action="" method="post">
            <div class="mb-3">
                <input type="text" class="form-control" value="{{ context.user.username }}" id="username" name="username" placeholder="Username" required>
            </div>
            <div class="mb-3">
                <input type="password" class="form-control" id="password" name="password" placeholder="New Password">
            </div>
            <div class="mb-3">
                <input type="password" class="form-control" id="confirm_password" name="confirm_password" placeholder="Confirm New Password">
            </div>
            <div class="mb-3 text-center">
                <input type="submit" class="btn btn-primary w-100" value="Save">
            </div>
        </form>
    </div>
</div>
{% endblock %}