{% extends "_base.html" %} {% block content %}

User settings

{% if user_profile.is_superuser %} User type: Superuser {% elif user_profile.user_type == 0 %} User type: User {% elif user_profile.user_type == 1 %} User type: Admin {% elif user_profile.user_type == 2 %} User type: ML Engineer {% elif user_profile.user_type == 3 %} User type: Accountant {% else %} User type: Unknown {% endif %}

Tokens:

{{ token_count }}

Change your password

Change Password
{% if user_profile.user_type == 2 or user.is_superuser %}

Model Selection

Select Model
{% endif %} {% if user_profile.user_type == 3 or user.is_superuser or user_profile.user_type == 1 %}

Generate Financial Statement

{% csrf_token %}
{% endif %} {% if user_profile.user_type == 2 or user.is_superuser or user_profile.user_type == 1%}

Upload Machine Learning Model

{% comment %} AI content {% endcomment %} {% endif%}
{% if user_profile.user_type == 2 or user.is_superuser %}

Model Performance

{% endif %}

General information

{% if user.email %} {{ user.email }} {% else %} No email address on record. {% endif %}
{{ user.username }}

User History

{% for entry in user_data %} {%endfor%}
Date Action Details
{{entry.date}} {{entry.action}} {% if entry.file %} Filename: {{entry.file}} {% elif entry.description %} {{ entry.description }} {% endif %}
{% if 1 %} {% comment %} REPLACE WITH LOGIC TO CHECK PROPER USER {% endcomment %} {% if user_profile.user_type == 2 or user.is_superuser %}

Application Logs

{% for entry in admin_data %} {% endfor %}
Date Action User ID Status Feedback
{{entry.date}} {{entry.action}} {% if entry.description %} {% endif %} {{entry.user}} {{entry.status}} {% if entry.feedback is not None %} {% if entry.feedback %} Liked {% else %} Disliked {% endif %} {% else %} N/A {% endif %}
{% endif %} {% if user.is_superuser or user_profile.user_type == 1 %}

User Management

{% for user_profile in all_user_profiles %} {% endfor %}
Username User Type Actions
{{ user_profile.user.username }} {{ user_profile.get_user_type_display }}
{% csrf_token %}
{% endif %} {% endif %} {% comment %} Admin page functionality end {% endcomment %}
{% endblock content %} {% block scripts %} {% endblock scripts %}