{% extends 'admin/__base__.html' %} {% block title %} {% if profile is defined %} Profile {% else %} {{ target.fullname | title }} {% endif %} {% endblock %} {% block sidebar %} {% from 'admin/macros.html' import generate_sidebar %} {% if profile is defined %} {{ generate_sidebar('Profile') }} {% else %} {{ generate_sidebar('User') }} {% endif %} {% endblock %} {% block main %}
Profile Picture
First Name: {{ target.fname | title }}
Last Name: {{ target.lname | title }}
Email: {{ target.email | lower }}
{% if profile is not defined %} {% endif %} {% if role_info %} {% if target.role != role.ADMIN %}

{{ target.role | title }} Details:


{% else %}

You are the "Superuser" of this web application.

{% endif %} {% if target.role == role.PARTICIPANT %} {% if role_info.leaderships %}

Leading for following teams:

{% endif %} {% if role_info.teams %}

Joined for following teams:

{% endif %} {% if not (role_info.leaderships or role_info.teams) %}

This user has not participated in any events.

{% endif %} {% elif target.role == role.COORDINATOR %}

This user is Co-ordinating the event {{ role_info.event.name }}.

{% endif %} {% if target.role == role.ORGANIZER %}

This user has organized the event {{ role_info.event.name}}.

{% endif %} {% if target.role == role.BRANCHADMIN %}

This user is branchadmin for the branch {{ role_info[0].branch | upper }}.

{% if role_info[1] %}

Following events can be managed by this user:

{% endif %} {% endif %} {% endif %}
{% endblock %}