Upload files to "frontend/components"
This commit is contained in:
parent
57ee7f3419
commit
392bdfca2f
5 changed files with 77 additions and 0 deletions
37
frontend/components/CloudRow.jinja
Normal file
37
frontend/components/CloudRow.jinja
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{#def pc #}
|
||||
<tr id="row-{{ pc.id }}">
|
||||
<td><code class="text-xs">{{ pc.id }}</code></td>
|
||||
<td>
|
||||
<Badge label="{{ pc.manifest.entry_type if pc.manifest and pc.manifest.entry_type else '?' }}" />
|
||||
</td>
|
||||
<td class="text-sm">{{ pc.size_mb }} MB</td>
|
||||
<td class="text-sm text-base-content/60">
|
||||
{% if pc.created %}{{ pc.created | datetimeformat }}{% else %}—{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex items-center gap-1">
|
||||
<button
|
||||
class="btn btn-ghost btn-xs"
|
||||
hx-get="/viewer/{{ pc.id }}"
|
||||
hx-target="#viewer-container"
|
||||
hx-swap="innerHTML"
|
||||
title="Visualiser"
|
||||
>👁️</button>
|
||||
<button
|
||||
class="btn btn-ghost btn-xs"
|
||||
hx-get="/admin/debug/{{ pc.id }}"
|
||||
hx-target="#debug-panel"
|
||||
hx-swap="innerHTML"
|
||||
title="Debug"
|
||||
>🔍</button>
|
||||
<button
|
||||
class="btn btn-ghost btn-xs text-error"
|
||||
hx-delete="/admin/delete/{{ pc.id }}"
|
||||
hx-target="#main-content"
|
||||
hx-swap="innerHTML"
|
||||
hx-confirm="Supprimer le nuage {{ pc.id }} ? Cette action est irréversible."
|
||||
title="Supprimer"
|
||||
>🗑️</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
Loading…
Add table
Add a link
Reference in a new issue