{% extends "base.html" %} {% block title %}Query Profile{% endblock %} {% block content %}

Query User Profile

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
{{ form.hidden_tag() }}
{{ form.username(class="form-control", placeholder="Enter the username to query", id="username", maxlength="20", pattern="^[a-zA-Z][a-zA-Z0-9_]{0,19}$") }}
Username must start with a letter and can only contain letters, numbers, and underscores (max 20 characters).
{% if user_info %}

{{ user_info.name }}

Username: {{ user_info.username }}

Email: {{ user_info.email }}

Privilege: {{ user_info.privilege }}

{% endif %}
{% endblock %}