@@ -66,7 +66,7 @@
{% endif %}
{{details.title|format:instance|selected_format:request.user.employee_get.employee_work_info.company_id|safe}}
-
{{details.subtitle|format:instance|selected_format:request.user.employee_get.employee_work_info.company_id|safe}}
+
{{details.subtitle|format:instance|selected_format:request.user.employee_get.employee_work_info.company_id|safe}}
{% if actions %}
@@ -121,6 +121,7 @@
hx-get="{{search_url}}?{{request.GET.urlencode}}&filter_applied=on"
hx-swap="outerHTML"
hx-target="#{{view_id|safe}}"
+ hx-on-htmx-before-request="htmxLoadIndicator(this);"
/>
{% trans "First" %}
@@ -143,6 +145,7 @@
hx-get="{{search_url}}?{{request.GET.urlencode}}&page={{ queryset.previous_page_number }}&filter_applied=on"
hx-swap="outerHTML"
hx-target="#{{view_id|safe}}"
+ hx-on:click="htmxLoadIndicator(this);"
class="oh-pagination__link"
>{% trans "Previous" %}
@@ -153,6 +156,7 @@
hx-get="{{search_url}}?{{request.GET.urlencode}}&page={{ queryset.next_page_number }}&filter_applied=on"
hx-swap="outerHTML"
hx-target="#{{view_id|safe}}"
+ hx-on:click="htmxLoadIndicator(this);"
class="oh-pagination__link"
>{% trans "Next" %}
@@ -162,6 +166,7 @@
hx-get="{{search_url}}?{{request.GET.urlencode}}&page={{ queryset.paginator.num_pages }}&filter_applied=on"
hx-swap="outerHTML"
hx-target="#{{view_id|safe}}"
+ hx-on:click="htmxLoadIndicator(this);"
class="oh-pagination__link"
>{% trans "Last" %}
diff --git a/horilla_views/templates/generic/horilla_detailed_view.html b/horilla_views/templates/generic/horilla_detailed_view.html
index 5f92dfd69..c039118f9 100644
--- a/horilla_views/templates/generic/horilla_detailed_view.html
+++ b/horilla_views/templates/generic/horilla_detailed_view.html
@@ -1,109 +1,92 @@
{% load generic_template_filters %}
-
- {% if instance_ids %}
-
-
+
+ {% if instance_ids %}
+
+
-
-
- {% endif %}
-
-
diff --git a/horilla_views/templates/generic/horilla_form.html b/horilla_views/templates/generic/horilla_form.html
index c30552810..3399c6e25 100644
--- a/horilla_views/templates/generic/horilla_form.html
+++ b/horilla_views/templates/generic/horilla_form.html
@@ -43,6 +43,7 @@
values = $(this).val();
if (values == "dynamic_create") {
$("#modalButton{{field_tuple.0}}").click()
+ $(this).val("")
}else if (values.includes("dynamic_create")) {
let index = values.indexOf("dynamic_create");
values.splice(index, 1);
diff --git a/horilla_views/templates/generic/horilla_list_table.html b/horilla_views/templates/generic/horilla_list_table.html
index 805562d36..9db721cb3 100644
--- a/horilla_views/templates/generic/horilla_list_table.html
+++ b/horilla_views/templates/generic/horilla_list_table.html
@@ -12,7 +12,7 @@
{% include "generic/export_fields_modal.html" %}
-
+