{% extends 'base.html' %} {% load custom_tags_and_filters %} {% block title %}Accounts and projects{% endblock %} {% block content %}

Accounts and projects

New project New account
{% if account %}

{{ account }}
{% csrf_token %} {# Using an 'input submit' element would be preferable to an anchor on the following line, but Bootstrap can't style a 'submit' as a label so you have to use an anchor. #} {% if account.active %}Active{% else %}Inactive{% endif %}

{% for project in account.project_set.all %}

{{ project }}
{% csrf_token %} {# Using an 'input submit' element would be preferable to an anchor on the following line, but Bootstrap can't style a 'submit' as a label so you have to use an anchor. #} {% if project.active %}Active{% else %}Inactive{% endif %}

{{ project.application_identifier }}
{% include 'accounts_and_projects/users_for_project.html' with users=project.user_set.all %}
{% empty %}

This account does not have any projects

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