From b5cd90d580547d7901f29a8bf4db95462e33d496 Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 2 Apr 2024 10:07:26 +0530 Subject: [PATCH] [UPDT] ASSET: Updated asset history individual view by changing hx-target and data-target --- .../asset_history/asset_history_list.html | 22 +- .../asset_history_single_view.html | 267 +++++++++--------- asset/templates/asset_history/group_by.html | 27 +- 3 files changed, 142 insertions(+), 174 deletions(-) diff --git a/asset/templates/asset_history/asset_history_list.html b/asset/templates/asset_history/asset_history_list.html index d72c52d52..b8ce59ad5 100644 --- a/asset/templates/asset_history/asset_history_list.html +++ b/asset/templates/asset_history/asset_history_list.html @@ -28,7 +28,7 @@
{% for asset_assignement in asset_assignments %} -
+
@@ -93,26 +93,6 @@
- - {% else %}
diff --git a/asset/templates/asset_history/asset_history_single_view.html b/asset/templates/asset_history/asset_history_single_view.html index 1d704e7a5..add755523 100644 --- a/asset/templates/asset_history/asset_history_single_view.html +++ b/asset/templates/asset_history/asset_history_single_view.html @@ -1,139 +1,150 @@ {% load static %} {% load i18n %} -{% if request.GET.requests_ids %} -
- - -
-{% endif %} +
+ {% if request.GET.requests_ids %} +
+ -
-
-
- Mary Magdalene -
-
- {{asset_assignment.asset_id}} - - {{asset_assignment.asset_id.asset_category_id}} + +
+ {% endif %} + +
+
+
+ Mary Magdalene +
+
+ {{asset_assignment.asset_id}} + + {{asset_assignment.asset_id.asset_category_id}} +
-
-
-
- {% trans "Allocated User" %} - {{asset_assignment.assigned_to_employee_id}} -
-
- {% trans "Returned Status" %} - - {{asset_assignment.return_status}} -
-
+
+
+
+ {% trans "Allocated User" %} + {{asset_assignment.assigned_to_employee_id}} +
+
+ {% trans "Returned Status" %} + + {{asset_assignment.return_status}} +
+
-
-
- {% trans "Allocated Date" %} - - {{asset_assignment.assigned_date}} -
-
- {% trans "Returned Date" %} - - {{asset_assignment.return_date}} -
-
-
-
- {% trans "Asset" %} - {{asset_assignment.asset_id}} -
-
- {% trans "Return Description" %} -
- {{asset_assignment.return_condition}} -
-
-
+
+
+ {% trans "Allocated Date" %} + + {{asset_assignment.assigned_date}} +
+
+ {% trans "Returned Date" %} + + {{asset_assignment.return_date}} +
+
+
+
+ {% trans "Asset" %} + {{asset_assignment.asset_id}} +
+
+ {% trans "Return Description" %} +
+ {{asset_assignment.return_condition}} +
+
+
-
-
- {% trans "Assign Condition Images" %} - -
- {% for doc in asset_assignment.assign_images.all %} - - {% endfor %} -
-
-
-
- {% trans "Return Condition Images" %} -
-
- {% for doc in asset_assignment.return_images.all %} - - {% endfor %} -
+
+
+ {% trans "Assign Condition Images" %} + +
+ {% for doc in asset_assignment.assign_images.all %} + + {% endfor %} +
+
+
+
+ {% trans "Return Condition Images" %} +
+
+ {% for doc in asset_assignment.return_images.all %} + + {% endfor %} +
-
-
+
+
+
+
+
-
- +
\ No newline at end of file diff --git a/asset/templates/asset_history/group_by.html b/asset/templates/asset_history/group_by.html index 160588fa5..30cec694b 100644 --- a/asset/templates/asset_history/group_by.html +++ b/asset/templates/asset_history/group_by.html @@ -57,9 +57,9 @@
@@ -236,26 +236,3 @@
- -