{% extends "core/base.html" %} {% block content %}

Formateurs

{% if user.is_staff %} Nouveau formateur {% endif %}
{% for trainer in trainers %}
{{ trainer.get_full_name }}

{{ trainer.email }}
{{ trainer.phone }}

{% if trainer.specialties.all %}

Spécialités :
{% for specialty in trainer.specialties.all %} {{ specialty.name }} {% endfor %}

{% endif %}
{% empty %}
Aucun formateur n'est disponible pour le moment.
{% endfor %}
{% endblock %}