{% extends 'modeladmin/inspect.html' %}
{% load i18n %}

{% block fields_output %}
    <dl>
        <dt>{% trans 'name' %}</dt>
        <dd>{{ instance.name }}</dd>

        <dt>{% trans 'members' %}</dt>
        <dd>
            <ul>
                {% for m in instance.get_members %}
                    {{ m }}
                {% empty %}
                    {% trans 'This team currently does not contain any members.' %}
                {% endfor %}
            </ul>
        </dd>

        {% if instance.get_manual_members %}
        <dt>{% trans 'manually added members' %}</dt>
        <ul>
            {% for m in instance.get_manual_members %}
                {{ m }}
            {% endfor %}
        </ul>
        {% endif %}
    </dl>
{% endblock %}
{% extends 'modeladmin/inspect.html' %}
{% load i18n %}

{% block fields_output %}
    <dl>
        <dt>{% trans 'name' %}</dt>
        <dd>{{ instance.name }}</dd>

        <dt>{% trans 'members' %}</dt>
        <dd>
            <ul>
                {% for m in instance.get_members %}
                    <li>{{ m }}{% if m.email or m.phone_number %} &mdash; {% if m.email %}<a href="mailto:{{ m.email }}">{{ m.email }}</a>{% endif %}{% if m.email and m.phone_number %} or {% endif %}{% if m.phone_number %}{{ m.phone_number }}{% endif %}{% endif %}</li>
                {% empty %}
                    {% trans 'This team currently does not contain any members.' %}
                {% endfor %}
            </ul>
        </dd>

        {% if instance.get_manual_members %}
        <dt>{% trans 'manually added members' %}</dt>
        <ul>
            {% for m in instance.get_manual_members %}
                 <li>{{ m }}{% if m.email or m.phone_number %} &mdash; {% if m.email %}<a href="mailto:{{ m.email }}">{{ m.email }}</a>{% endif %}{% if m.email and m.phone_number %} or {% endif %}{% if m.phone_number %}{{ m.phone_number }}{% endif %}{% endif %}</li>
            {% endfor %}
        </ul>
        {% endif %}
    </dl>
{% endblock %}
Add contact information regarding team members
Add contact information regarding team members
