Upload files to "frontend/templates/partials"
This commit is contained in:
parent
d504a39d40
commit
d009e0da62
5 changed files with 114 additions and 0 deletions
18
frontend/templates/partials/debug_panel.jinja
Normal file
18
frontend/templates/partials/debug_panel.jinja
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<div id="debug-panel">
|
||||
<Card class_extra="mt-4">
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<h3 class="font-semibold text-sm">Debug : <code>{{ pc_id }}</code></h3>
|
||||
<Button
|
||||
label="✕ Fermer"
|
||||
variant="ghost"
|
||||
hx_get="/admin/list"
|
||||
hx_target="#main-content"
|
||||
/>
|
||||
</div>
|
||||
{% if error %}
|
||||
<Alert message="{{ error }}" type="error" />
|
||||
{% else %}
|
||||
<pre class="bg-base-200 rounded p-3 text-xs overflow-auto max-h-80">{{ data | tojson(indent=2) }}</pre>
|
||||
{% endif %}
|
||||
</Card>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue