Corrige l'édition inline sur /entries
La section qui se recharge seule transmettait hx-select="#entries-list" aux boutons des lignes : la réponse de « modifier » / « dupliquer » était filtrée à vide et la ligne disparaissait. hx-disinherit="*" sur les conteneurs auto-rafraîchis (liste, aujourd'hui, dernières entrées, timer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
13bbba1053
commit
3164fa8048
4 files changed
+4
-4
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
<section id="recent" class="card" hx-get="/ui/dernieres-entrees" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
|
<section id="recent" hx-disinherit="*" class="card" hx-get="/ui/dernieres-entrees" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
|
||||||
<div class="card-head">
|
<div class="card-head">
|
||||||
<h2>Dernières entrées</h2>
|
<h2>Dernières entrées</h2>
|
||||||
<a href="/entries">Tout voir</a>
|
<a href="/entries">Tout voir</a>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{% import "_icons.html" as icons %}
|
{% import "_icons.html" as icons %}
|
||||||
<section id="timer" hx-get="/ui/timer" hx-trigger="timer-changed from:body" hx-swap="outerHTML" class="card timer{% if running.is_some() %} is-running{% endif %}"{% if let Some(e) = running %} style="--color: {{ e.color }}"{% endif %}>
|
<section id="timer" hx-disinherit="*" hx-get="/ui/timer" hx-trigger="timer-changed from:body" hx-swap="outerHTML" class="card timer{% if running.is_some() %} is-running{% endif %}"{% if let Some(e) = running %} style="--color: {{ e.color }}"{% endif %}>
|
||||||
{% if let Some(e) = running %}
|
{% if let Some(e) = running %}
|
||||||
<div class="current">
|
<div class="current">
|
||||||
<div class="current-label">
|
<div class="current-label">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<section id="today" class="card" hx-get="/ui/today" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
|
<section id="today" hx-disinherit="*" class="card" hx-get="/ui/today" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
|
||||||
<div class="card-head">
|
<div class="card-head">
|
||||||
<h2>Aujourd'hui</h2>
|
<h2>Aujourd'hui</h2>
|
||||||
<span class="total">{{ today_total }}</span>
|
<span class="total">{{ today_total }}</span>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="entries-list" class="card" hx-get="/entries?from={{ from }}&to={{ to }}{{ extra_query }}" hx-select="#entries-list" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
|
<section id="entries-list" hx-disinherit="*" class="card" hx-get="/entries?from={{ from }}&to={{ to }}{{ extra_query }}" hx-select="#entries-list" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
|
||||||
<div class="card-head">
|
<div class="card-head">
|
||||||
<h2>Entrées</h2>
|
<h2>Entrées</h2>
|
||||||
<span class="total">{{ total }}</span>
|
<span class="total">{{ total }}</span>
|
||||||
|
|||||||
Reference in new issue
Block a user