From d98ac4bbd92208af6c46e4b16ad4b6465235fb25 Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 19 Sep 2024 16:23:35 +0530 Subject: [PATCH] [UPDT] HORILLA VIEWS: Image url and data-action for previous object --- .../templates/generic/horilla_card.html | 4 ++- .../generic/horilla_detailed_view.html | 2 ++ .../templates/generic/quick_actions.html | 29 +++++++++---------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/horilla_views/templates/generic/horilla_card.html b/horilla_views/templates/generic/horilla_card.html index b0baa55bf..618666db0 100644 --- a/horilla_views/templates/generic/horilla_card.html +++ b/horilla_views/templates/generic/horilla_card.html @@ -46,9 +46,10 @@ {% include "generic/filter_tags.html" %} {% endif %} {% if queryset %} -
+
{% for instance in queryset %}
+ {% if instance|getattribute:details.image_src %}
+ {% 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}} diff --git a/horilla_views/templates/generic/horilla_detailed_view.html b/horilla_views/templates/generic/horilla_detailed_view.html index e43cefbc6..dc0df3c62 100644 --- a/horilla_views/templates/generic/horilla_detailed_view.html +++ b/horilla_views/templates/generic/horilla_detailed_view.html @@ -15,6 +15,7 @@ {% if instance_ids %}
-
- )
-
{% comment %} {% endcomment %} - )
{% if bulk_path %} -
- )
-
@@ -117,7 +117,7 @@
{% endfor %} - +
{% if row_status_indications %}
@@ -134,11 +134,10 @@ {% comment %} $(document).ready(function () { $(".quick-bulk-action").hover(function () { // over - $(this).find('.label').show('slow'); + $(this).find('.label').show('slow'); }, function () { // out } ); }); {% endcomment %} - \ No newline at end of file