classifier/frontend/templates/partials/cloud_list.jinja

42 lines
No EOL
1.2 KiB
Django/Jinja

<Layout title="Admin — Nuages de points" active_tab="admin">
<Card title="🗂️ Nuages de points">
<div class="flex justify-between items-center mb-4">
<Button
label="🔄 Actualiser"
variant="ghost"
hx_get="/admin/list"
hx_target="#main-content"
/>
</div>
{% if error %}
<Alert message="{{ error }}" type="error" />
{% elif not pointclouds %}
<p class="text-base-content/40 text-sm text-center py-8">
Aucun nuage disponible sur le serveur.
</p>
{% else %}
<p class="text-xs text-base-content/40 mb-3">{{ pointclouds|length }} nuage(s)</p>
<div class="overflow-x-auto">
<table class="table table-sm">
<thead>
<tr>
<th>ID</th>
<th>Format</th>
<th>Taille</th>
<th>Créé le</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="cloud-table-body">
{% for pc in pointclouds %}
<CloudRow :pc="pc" />
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</Card>
<div id="debug-panel"></div>
</Layout>