Fix issue arising from last commits refactor where multiple calls to edit workout start date/note would create multiple instances of the dom
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div id="edit-start-date" hx-target="this" hx-swap="innerHTML swap:0.5s">
|
||||
<div id="edit-start-date" hx-target="this" hx-swap="outerHTML swap:0.5s">
|
||||
{% if is_edit|default(false, true) == false %}
|
||||
<span class="text-base font-normal text-gray-500">{{ strftime(start_date, "%b %d %Y") }}</span>
|
||||
<a class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="workout-note" hx-target="this" hx-swap="innerHTML swap:0.5s">
|
||||
<div id="workout-note" hx-target="this" hx-swap="outerHTML swap:0.5s">
|
||||
{% if is_edit|default(false, true) == false %}
|
||||
{% if note|length > 0 %}
|
||||
<span class="text-base font-normal text-gray-500">{{ note }}</span>
|
||||
|
||||
Reference in New Issue
Block a user