Amélioration vue imports

Fix #319
This commit is contained in:
Jean-Marie Favreau 2025-02-19 10:58:00 +01:00
parent 53ce5e3abb
commit fba67cc974
2 changed files with 19 additions and 12 deletions

View File

@ -1165,6 +1165,14 @@ article form div .recurrence-widget {
.large-table {
overflow-x: scroll;
width: 100%;
.center {
text-align: center;
}
.border-left {
border-left: 1px solid var(--muted-border-color);
}
}
.container-fluid article form .hidden {

View File

@ -6,14 +6,13 @@
<th rowspan="2">Date</th>
<th rowspan="2">Source</th>
<th rowspan="2">Status</th>
<th rowspan="2">Action</th>
<th colspan="4">événements</th>
<th colspan="4" class="center">nombre d'événements</th>
</tr>
<tr>
<th>initial</th>
<th>importés</th>
<th>mis à jour</th>
<th>dépubliés</th>
<th class="center"><span data-tooltip="Nombre d'événements détectés sur le site source">en ligne</span></th>
<th class="border-left enter"><span data-tooltip="Nombre d'événements créés sur PdL">importés</span></th>
<th class="center"><span data-tooltip="Nombre d'événements mis à jour ou laissés inchangés sur PdL">mis à jour</span></th>
<th class="border-left enter"><span data-tooltip="Nombre d'événements supprimés de PdL car ils ont disparus sur le site source">supprimés</span></th>
</tr>
</thead>
<tbody>
@ -35,12 +34,12 @@
{% endif %}
{% endif %}
{% endif %} </td>
<td><span{% if obj.status == "failed" %} data-tooltip="{{ obj.error_message }}"{% endif %}>{{ obj.status }}</span></td>
<td>{% if obj.status == "running" %}<a href="{% url 'cancel_import' obj.id %}">Annuler</a>{% endif %}</td>
<td>{% if obj.status == "success" %}{{ obj.nb_initial }}{% endif %}</td>
<td>{% if obj.status == "success" %}{{ obj.nb_imported }}{% endif %}</td>
<td>{% if obj.status == "success" %}{{ obj.nb_updated }}{% endif %}</td>
<td>{% if obj.status == "success" %}{{ obj.nb_removed }}{% endif %}</td>
<td><span{% if obj.status == "failed" %} data-tooltip="{{ obj.error_message }}"{% endif %}>{{ obj.status }}</span>
{% if obj.status == "running" %}(<a href="{% url 'cancel_import' obj.id %}">annuler</a>){% endif %}</td>
<td class="center">{% if obj.status == "success" %}{{ obj.nb_initial }}{% endif %}</td>
<td class="border-left enter">{% if obj.status == "success" %}{{ obj.nb_imported }}{% endif %}</td>
<td class="center">{% if obj.status == "success" %}{{ obj.nb_updated }}{% endif %}</td>
<td class="border-left center">{% if obj.status == "success" %}{{ obj.nb_removed }}{% endif %}</td>
</tr>
{% endfor %}
{% if next %}