63 lines
2.2 KiB
Twig
63 lines
2.2 KiB
Twig
|
|
{% extends 'base.html.twig' %}
|
||
|
|
|
||
|
|
{% block title %}Assistants IA{% endblock %}
|
||
|
|
|
||
|
|
{% block body %}
|
||
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
||
|
|
<h1>Assistants IA</h1>
|
||
|
|
<a href="{{ path('app_assistant_ia_new') }}" class="btn btn-success">
|
||
|
|
<i class="fas fa-plus"></i> Nouvel Assistant IA
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>Id</th>
|
||
|
|
<th>Nom</th>
|
||
|
|
<th>Nombre de contributions</th>
|
||
|
|
<th>Moyenne pertinence</th>
|
||
|
|
<th>Moyenne temps</th>
|
||
|
|
<th>Actions</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{% for assistant_ia in assistant_ias %}
|
||
|
|
<tr>
|
||
|
|
<td>{{ assistant_ia.id }}</td>
|
||
|
|
<td>{{ assistant_ia.nom }}</td>
|
||
|
|
<td>{{ assistant_ia.nombreContributions }}</td>
|
||
|
|
<td>
|
||
|
|
{% if assistant_ia.moyennePertinence %}
|
||
|
|
{{ assistant_ia.moyennePertinence }}/5
|
||
|
|
{% else %}
|
||
|
|
<span class="text-muted">Non évalué</span>
|
||
|
|
{% endif %}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{% if assistant_ia.moyenneTemps %}
|
||
|
|
{{ assistant_ia.moyenneTemps }}/5
|
||
|
|
{% else %}
|
||
|
|
<span class="text-muted">Non évalué</span>
|
||
|
|
{% endif %}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<a href="{{ path('app_assistant_ia_show', {'id': assistant_ia.id}) }}" class="btn btn-sm btn-info">
|
||
|
|
<i class="fas fa-eye"></i> Voir
|
||
|
|
</a>
|
||
|
|
<a href="{{ path('app_assistant_ia_edit', {'id': assistant_ia.id}) }}" class="btn btn-sm btn-warning">
|
||
|
|
<i class="fas fa-edit"></i> Modifier
|
||
|
|
</a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{% else %}
|
||
|
|
<tr>
|
||
|
|
<td colspan="6" class="text-center">Aucun assistant IA trouvé</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
{% endblock %}
|