117 lines
4.6 KiB
Twig
117 lines
4.6 KiB
Twig
|
|
{% extends 'base.html.twig' %}
|
||
|
|
|
||
|
|
{% block title %}Assistant IA - {{ assistant_ia.nom }}{% endblock %}
|
||
|
|
|
||
|
|
{% block body %}
|
||
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
||
|
|
<h1>{{ assistant_ia.nom }}</h1>
|
||
|
|
<div>
|
||
|
|
<a href="{{ path('app_assistant_ia_edit', {'id': assistant_ia.id}) }}" class="btn btn-warning">
|
||
|
|
<i class="fas fa-edit"></i> Modifier
|
||
|
|
</a>
|
||
|
|
<a href="{{ path('app_assistant_ia_index') }}" class="btn btn-secondary">
|
||
|
|
<i class="fas fa-arrow-left"></i> Retour à la liste
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-6">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<h5 class="card-title mb-0">Informations générales</h5>
|
||
|
|
</div>
|
||
|
|
<div class="card-body">
|
||
|
|
<p><strong>ID :</strong> {{ assistant_ia.id }}</p>
|
||
|
|
<p><strong>Nom :</strong> {{ assistant_ia.nom }}</p>
|
||
|
|
<p><strong>Nombre de contributions :</strong> {{ assistant_ia.nombreContributions }}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-6">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<h5 class="card-title mb-0">Statistiques</h5>
|
||
|
|
</div>
|
||
|
|
<div class="card-body">
|
||
|
|
<p><strong>Moyenne pertinence :</strong>
|
||
|
|
{% if assistant_ia.moyennePertinence %}
|
||
|
|
{{ assistant_ia.moyennePertinence }}/5
|
||
|
|
{% else %}
|
||
|
|
<span class="text-muted">Non évalué</span>
|
||
|
|
{% endif %}
|
||
|
|
</p>
|
||
|
|
<p><strong>Moyenne temps :</strong>
|
||
|
|
{% if assistant_ia.moyenneTemps %}
|
||
|
|
{{ assistant_ia.moyenneTemps }}/5
|
||
|
|
{% else %}
|
||
|
|
<span class="text-muted">Non évalué</span>
|
||
|
|
{% endif %}
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{% if assistant_ia.contribIas|length > 0 %}
|
||
|
|
<div class="row mt-4">
|
||
|
|
<div class="col-12">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<h5 class="card-title mb-0">Contributions IA</h5>
|
||
|
|
</div>
|
||
|
|
<div class="card-body">
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-sm">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>Contribution</th>
|
||
|
|
<th>Pertinence</th>
|
||
|
|
<th>Temps</th>
|
||
|
|
<th>Moyenne</th>
|
||
|
|
<th>Commentaire</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{% for contrib_ia in assistant_ia.contribIas %}
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<a href="{{ path('app_contribution_show', {'id': contrib_ia.contribution.id}) }}">
|
||
|
|
{{ contrib_ia.contribution }}
|
||
|
|
</a>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{% if contrib_ia.evaluationPertinence %}
|
||
|
|
{{ contrib_ia.libellePertinence }}
|
||
|
|
{% else %}
|
||
|
|
<span class="text-muted">Non évalué</span>
|
||
|
|
{% endif %}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{% if contrib_ia.evaluationTemps %}
|
||
|
|
{{ contrib_ia.libelleTemps }}
|
||
|
|
{% else %}
|
||
|
|
<span class="text-muted">Non évalué</span>
|
||
|
|
{% endif %}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
{% if contrib_ia.moyenneEvaluation %}
|
||
|
|
{{ contrib_ia.moyenneEvaluation }}/5
|
||
|
|
{% else %}
|
||
|
|
<span class="text-muted">Non évalué</span>
|
||
|
|
{% endif %}
|
||
|
|
</td>
|
||
|
|
<td>{{ contrib_ia.commentaire|default('') }}</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endif %}
|
||
|
|
{% endblock %}
|