{% extends "base.html"%} {% load i18n %} {% load tolocale %} {% load i18n %} {% block extrahead %} {% endblock %} {% block content %}

{{user}} ({% trans "Logout" %})

{% if violation %}
You have no rights to access this area. Please contact your administrator
{% else %} {% block subcontent %}

{% trans "Users - Institutions" %}


{% load tolocale %}
{% if users %} {% for user in users %} {% endfor %}
{% trans "Username" %} {% trans "Email" %} {% trans "Name" %} {% trans "Status" %} {% trans "Institution" %}
{{user.username}} {{user.email}} {{user.first_name}} {{user.last_name}} {% if user.registrationprofile_set.all %}{% if user.registrationprofile_set.all.0.activation_key == "ALREADY_ACTIVATED" %}{% trans "Active" %}{% else %}{% trans "Inactive" %} or {% trans "Key Expired" %}{% endif %}{% else %}-{% endif %} {% if user.get_profile.institution %}{% tolocale user.get_profile.institution LANGUAGE_CODE %}{% endif %}
{% endif %}
{% if institutions %} {% for institution in institutions %} {% endfor %}
{% trans "Name" %} {% trans "Type" %} {% trans "Contacts" %} {% trans "Address" %} {% trans "Admin Users" %}
{% tolocale institution LANGUAGE_CODE %} {{institution.get_ertype_display}} {% if institution.institutiondetails.contact.all %}{% for contact in institution.institutiondetails.contact.all %}{{contact}}
{% endfor %}{% endif %}
{{institution.institutiondetails.address_street}}
{{institution.institutiondetails.address_city}}
{% if institution.userprofile_set.all %}{% for admuser in institution.userprofile_set.all %}{{admuser.user}}
{% endfor %}{% endif %}
{% endif %}
{% endblock %} {% endif %}
{% endblock %}