From 621c2a53bae445cac178e60493217e04b89f519d Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 29 Jul 2024 16:56:52 +0530 Subject: [PATCH] [UPDT] HORILLA VIEWS: Custom detailed cell --- .../templates/generic/horilla_detailed_view.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/horilla_views/templates/generic/horilla_detailed_view.html b/horilla_views/templates/generic/horilla_detailed_view.html index c56d8b8fb..4b1ebbc6d 100644 --- a/horilla_views/templates/generic/horilla_detailed_view.html +++ b/horilla_views/templates/generic/horilla_detailed_view.html @@ -48,13 +48,13 @@
- {{object|getattribute:header.title}} + {{object|getattribute:header.title|selected_format:request.user.employee_get.employee_work_info.company_id}} - {{object|getattribute:header.subtitle}}
@@ -67,12 +67,16 @@
{% for col in body %}
+ {% if not col.2 %}
{{col.0}} {{object|getattribute:col.1|safe}}{{object|getattribute:col.1|selected_format:request.user.employee_get.employee_work_info.company_id|safe}}
+ {% else %} + {{object|getattribute:col.1|safe}} + {% endif %}
{% endfor %}