{% extends 'pagination/pagination_base.html' %} {% load custom_tags_and_filters %} {% block title %}Accounts and projects{% endblock %} {% block before_pagination %}
Accounts and projects
{% button type="add" value="New project" url="create_project" %} {% button type="add" value="New account" url="create_account" %}
{% endblock %} {% block pagination_content %} {% if customizations|get_item:"account_enable_manager_edit_mode" == "enabled" %} {% if user.is_superuser or user.is_user_office or user.is_accounting_officer or user.is_facility_manager %}
{% endif %} {% endif %} {% if project_types or account_types %}{% endif %} {% for account in page %} {% if account_types or project_types %} {% endif %} {% regroup account.sorted_projects by active as active_inactive_projects %} {% if active_inactive_projects|length == 1 and not active_inactive_projects.0.grouper and project_list_active_only %} {% endif %} {% for project_list in active_inactive_projects %} {% if project_list.grouper or not project_list_active_only %} {% for project in project_list.list %} {% if account_types or project_types %} {% endif %} {% endfor %} {% endif %} {% empty %} {% endfor %} {% endfor %}
{% include 'pagination/pagination_column.html' with order_by='name' name='Name' %}Type(s){{ customizations|get_item:"project_application_identifier_name" }} Managers/PIs {% include 'pagination/pagination_column.html' with order_by='active' name='Active' %}
{{ account.name }} {{ account.type|default_if_none:"" }}
{% for manager in account.manager_set.all %} {{ manager.get_name }} {% if not forloop.last %}
{% endif %} {% endfor %}
{% csrf_token %} {% if account.active %} {% button type="save" size="small" title="Deactivate" icon="glyphicon-ok" value="" %} {% else %} {% button type="delete" submit=True size="small" title="Reactivate" icon="glyphicon-remove" value="" %} {% endif %}
{% url "account" account.id as account_url %} {% button type="view" size="small" value="View" title="View account" url=account_url %}
{% endblock %} {% block after_pagination %} {% endblock %}