refactor: rename toast behavior to tooltip (typo)

This commit is contained in:
Herculino Trotta
2024-10-11 22:04:49 -03:00
parent c59edb7fac
commit c8a9dfb38e
10 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -38,7 +38,7 @@
data-bs-title="{% translate "Edit" %}" data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'account_group_edit' pk=account_group.id %}" hx-get="{% url 'account_group_edit' pk=account_group.id %}"
hx-target="#generic-offcanvas" hx-target="#generic-offcanvas"
_="install toast"> _="install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a> <i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action" <a class="text-danger text-decoration-none p-1 tag-action"
role="button" role="button"
@@ -46,7 +46,7 @@
data-bs-title="{% translate "Delete" %}" data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'account_group_delete' pk=account_group.id %}" hx-delete="{% url 'account_group_delete' pk=account_group.id %}"
hx-trigger='delete_confirmed' hx-trigger='delete_confirmed'
_="install toast _="install tooltip
on click on click
if event.ctrlKey trigger delete_confirmed if event.ctrlKey trigger delete_confirmed
else else
+2 -2
View File
@@ -43,7 +43,7 @@
hx-target="#generic-offcanvas" hx-target="#generic-offcanvas"
_="on click send action_clicked to .tag-action in the closest parent .tag end _="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast"> install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a> <i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action" <a class="text-danger text-decoration-none p-1 tag-action"
role="button" role="button"
@@ -53,7 +53,7 @@
hx-trigger='delete_confirmed' hx-trigger='delete_confirmed'
_="on click send action_clicked to .tag-action in the closest parent .tag end _="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast install tooltip
on click on click
if event.ctrlKey trigger delete_confirmed if event.ctrlKey trigger delete_confirmed
else else
+2 -2
View File
@@ -39,7 +39,7 @@
data-bs-title="{% translate "Edit" %}" data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'category_edit' category_id=category.id %}" hx-get="{% url 'category_edit' category_id=category.id %}"
hx-target="#generic-offcanvas" hx-target="#generic-offcanvas"
_="install toast"> _="install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a> <i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 category-action" <a class="text-danger text-decoration-none p-1 category-action"
role="button" role="button"
@@ -47,7 +47,7 @@
data-bs-title="{% translate "Delete" %}" data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'category_delete' category_id=category.id %}" hx-delete="{% url 'category_delete' category_id=category.id %}"
hx-trigger='delete_confirmed' hx-trigger='delete_confirmed'
_="install toast _="install tooltip
on click on click
if event.ctrlKey trigger delete_confirmed if event.ctrlKey trigger delete_confirmed
else else
+2 -2
View File
@@ -41,7 +41,7 @@
hx-target="#generic-offcanvas" hx-target="#generic-offcanvas"
_="on click send action_clicked to .tag-action in the closest parent .tag end _="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast"> install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a> <i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action" <a class="text-danger text-decoration-none p-1 tag-action"
role="button" role="button"
@@ -51,7 +51,7 @@
hx-trigger='delete_confirmed' hx-trigger='delete_confirmed'
_="on click send action_clicked to .tag-action in the closest parent .tag end _="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast install tooltip
on click on click
if event.ctrlKey trigger delete_confirmed if event.ctrlKey trigger delete_confirmed
else else
+1 -1
View File
@@ -2,7 +2,7 @@
<span class="tw-text-xs text-white-50 mx-1" <span class="tw-text-xs text-white-50 mx-1"
data-bs-toggle="tooltip" data-bs-toggle="tooltip"
data-bs-title="{{ content }}" data-bs-title="{{ content }}"
_="install toast"> _="install tooltip">
<i class="fa-solid fa-circle-question fa-fw"></i> <i class="fa-solid fa-circle-question fa-fw"></i>
</span> </span>
{% endspaceless %} {% endspaceless %}
+1 -1
View File
@@ -6,7 +6,7 @@
{% include 'includes/scripts/hyperscript/init_tom_select.html' %} {% include 'includes/scripts/hyperscript/init_tom_select.html' %}
{% include 'includes/scripts/hyperscript/hide_amount.html' %} {% include 'includes/scripts/hyperscript/hide_amount.html' %}
{% include 'includes/scripts/hyperscript/toast.html' %} {% include 'includes/scripts/hyperscript/tooltip.html' %}
{% include 'includes/scripts/hyperscript/htmx_error_handler.html' %} {% include 'includes/scripts/hyperscript/htmx_error_handler.html' %}
{% javascript_pack 'htmx' attrs="defer" %} {% javascript_pack 'htmx' attrs="defer" %}
@@ -1,5 +1,5 @@
<script type="text/hyperscript"> <script type="text/hyperscript">
behavior toast behavior tooltip
on mouseenter call bootstrap.Tooltip.getOrCreateInstance(me).show() end on mouseenter call bootstrap.Tooltip.getOrCreateInstance(me).show() end
on mouseleave or click call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end on mouseleave or click call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
end end
+2 -2
View File
@@ -40,7 +40,7 @@
hx-target="#generic-offcanvas" hx-target="#generic-offcanvas"
_="on click send action_clicked to .tag-action in the closest parent .tag end _="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast"> install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a> <i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action" <a class="text-danger text-decoration-none p-1 tag-action"
role="button" role="button"
@@ -50,7 +50,7 @@
hx-trigger='delete_confirmed' hx-trigger='delete_confirmed'
_="on click send action_clicked to .tag-action in the closest parent .tag end _="on click send action_clicked to .tag-action in the closest parent .tag end
on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end on action_clicked call bootstrap.Tooltip.getOrCreateInstance(me).dispose() end
install toast install tooltip
on click on click
if event.ctrlKey trigger delete_confirmed if event.ctrlKey trigger delete_confirmed
else else
@@ -87,7 +87,7 @@ my-3"
data-bs-title="{% translate "Edit" %}" data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'transaction_edit' transaction_id=transaction.id %}" hx-get="{% url 'transaction_edit' transaction_id=transaction.id %}"
hx-target="#generic-offcanvas" hx-target="#generic-offcanvas"
_="install toast"> _="install tooltip">
<i class="fa-solid fa-pencil fa-fw"></i></a> <i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-2 transaction-action" <a class="text-danger text-decoration-none p-2 transaction-action"
role="button" role="button"
@@ -95,7 +95,7 @@ my-3"
data-bs-title="{% translate "Delete" %}" data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'transaction_delete' transaction_id=transaction.id %}" hx-delete="{% url 'transaction_delete' transaction_id=transaction.id %}"
hx-trigger='delete_confirmed' hx-trigger='delete_confirmed'
_="install toast _="install tooltip
on click on click
if event.ctrlKey trigger delete_confirmed if event.ctrlKey trigger delete_confirmed
else else