refactor: remove tooltip

This commit is contained in:
Herculino Trotta
2024-10-14 22:57:17 -03:00
parent e12b5e62c4
commit aee9f39e20
9 changed files with 14 additions and 31 deletions

View File

@@ -37,8 +37,7 @@
data-bs-toggle="tooltip"
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'account_group_edit' pk=account_group.id %}"
hx-target="#generic-offcanvas"
_="install tooltip">
hx-target="#generic-offcanvas">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -46,8 +45,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'account_group_delete' pk=account_group.id %}"
hx-trigger='delete_confirmed'
_="install tooltip
on click
_="on click
if event.ctrlKey trigger delete_confirmed
else
call Swal.fire({title: '{% translate 'Are you sure?' %}',

View File

@@ -40,8 +40,7 @@
data-bs-toggle="tooltip"
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'account_edit' pk=account.id %}"
hx-target="#generic-offcanvas"
_="install tooltip">
hx-target="#generic-offcanvas">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -49,8 +48,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'account_delete' pk=account.id %}"
hx-trigger='delete_confirmed'
_="install tooltip
on click
_="on click
if event.ctrlKey trigger delete_confirmed
else
call Swal.fire({title: '{% translate 'Are you sure?' %}',

View File

@@ -38,8 +38,7 @@
data-bs-toggle="tooltip"
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'category_edit' category_id=category.id %}"
hx-target="#generic-offcanvas"
_="install tooltip">
hx-target="#generic-offcanvas">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 category-action"
role="button"
@@ -47,8 +46,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'category_delete' category_id=category.id %}"
hx-trigger='delete_confirmed'
_="install tooltip
on click
_="on click
if event.ctrlKey trigger delete_confirmed
else
call Swal.fire({title: '{% translate 'Are you sure?' %}',

View File

@@ -38,8 +38,7 @@
data-bs-toggle="tooltip"
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'currency_edit' pk=currency.id %}"
hx-target="#generic-offcanvas"
_="install tooltip">
hx-target="#generic-offcanvas">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -47,8 +46,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'currency_delete' pk=currency.id %}"
hx-trigger='delete_confirmed'
_="install tooltip
on click
_="on click
if event.ctrlKey trigger delete_confirmed
else
call Swal.fire({title: '{% translate 'Are you sure?' %}',

View File

@@ -1,8 +1,7 @@
{% spaceless %}
<span class="tw-text-xs text-white-50 mx-1"
data-bs-toggle="tooltip"
data-bs-title="{{ content }}"
_="install tooltip">
data-bs-title="{{ content }}">
<i class="fa-solid fa-circle-question fa-fw"></i>
</span>
{% endspaceless %}

View File

@@ -54,8 +54,7 @@
hx-boost="false"
data-bs-placement="right"
data-bs-toggle="tooltip"
data-bs-title="{% translate "Only use this if you know what you're doing" %}"
_="install tooltip">
data-bs-title="{% translate "Only use this if you know what you're doing" %}">
{% translate 'Django Admin' %}
</a>
</li>

View File

@@ -50,7 +50,6 @@
<button class="btn btn-secondary me-3"
hx-get="{% url 'transactions_bulk_pay' %}"
hx-include=".transaction"
_="install tooltip"
data-bs-toggle="tooltip"
data-bs-title="{% translate 'Mark as paid' %}">
<i class="fa-regular fa-circle-check tw-text-green-400"></i>
@@ -58,7 +57,6 @@
<button class="btn btn-secondary me-3"
hx-get="{% url 'transactions_bulk_unpay' %}"
hx-include=".transaction"
_="install tooltip"
data-bs-toggle="tooltip"
data-bs-title="{% translate 'Mark as unpaid' %}">
<i class="fa-regular fa-circle tw-text-red-400"></i>
@@ -66,7 +64,6 @@
<button class="btn btn-secondary"
hx-get="{% url 'transactions_bulk_delete' %}"
hx-include=".transaction"
_="install tooltip"
data-bs-toggle="tooltip"
data-bs-title="{% translate 'Delete' %}"><i class="fa-solid fa-trash text-danger"></i>
</button>

View File

@@ -37,8 +37,7 @@
data-bs-toggle="tooltip"
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'tag_edit' tag_id=tag.id %}"
hx-target="#generic-offcanvas"
_="install tooltip">
hx-target="#generic-offcanvas">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-1 tag-action"
role="button"
@@ -46,8 +45,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'tag_delete' tag_id=tag.id %}"
hx-trigger='delete_confirmed'
_="install tooltip
on click
_="on click
if event.ctrlKey trigger delete_confirmed
else
call Swal.fire({title: '{% translate 'Are you sure?' %}',

View File

@@ -76,8 +76,7 @@
data-bs-toggle="tooltip"
data-bs-title="{% translate "Edit" %}"
hx-get="{% url 'transaction_edit' transaction_id=transaction.id %}"
hx-target="#generic-offcanvas"
_="install tooltip">
hx-target="#generic-offcanvas">
<i class="fa-solid fa-pencil fa-fw"></i></a>
<a class="text-danger text-decoration-none p-2 transaction-action"
role="button"
@@ -85,8 +84,7 @@
data-bs-title="{% translate "Delete" %}"
hx-delete="{% url 'transaction_delete' transaction_id=transaction.id %}"
hx-trigger='delete_confirmed'
_="install tooltip
on click
_="on click
if event.ctrlKey trigger delete_confirmed
else
call Swal.fire({title: '{% translate 'Are you sure?' %}',