{% load combo %}

{% if not json.err and not plateforme.err and plateforme.data %}

{% with data=json.data %}

<h2>{{ plateforme.data.name }}</h2>
<div class="cell--body">

<h3>Coordonateurs</h3>

<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
  <tr>
    <th>Nom</th>
    <th>Prénom</th>
    <th>Courriel</th>
    <th>Téléphone</th>
  {% for acc in data %}
  {% if acc.role == "Coordonnateur" %}
  </tr>
    <td>{{ acc.nom|default:"" }}</td>
    <td>{{ acc.prenom|default:"" }}</td>
    <td>{% if acc.email %}<a href="mailto:{{ acc.email }}">{{ acc.email }}</a>{% endif %}</td>
    <td>{% if acc.tel %}<a href="tel:{{ acc.tel }}">{{ acc.tel }}</a>{% endif %}</td>
  </tr>
  {% endif %}
  {% endfor %}
</table>
</div>

</div>

{% endwith %}

{% endif %}
