{% 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 account_types %}{% endif %} {% for account in page %} {% if account_types %}{% endif %} {% regroup account.sorted_projects by active as active_inactive_projects %} {% if active_inactive_projects|length_is: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 %}{% endif %} {% endfor %} {% endif %} {% empty %} {% endfor %} {% endfor %}
{% include 'pagination/pagination_column.html' with order_by='name' name='Name' %}{% include 'pagination/pagination_column.html' with order_by='type' name='Account type' %}{{ "projects_and_accounts"|customization:"project_application_identifier_name" }} {% include 'pagination/pagination_column.html' with order_by='active' name='Active' %}
{{ account.name }} {{ account.type|default_if_none:"" }}
{% 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 %}