From 93c504f0f0bf22e85783db2ec6fe7a402adc9e02 Mon Sep 17 00:00:00 2001
From: BonfaceKilz
Date: Thu, 19 May 2022 15:12:36 +0300
Subject: Add extra sections for displaying delete/insert data
---
wqflask/wqflask/templates/case_attributes.html | 345 ++++++++++++++-----------
1 file changed, 200 insertions(+), 145 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/templates/case_attributes.html b/wqflask/wqflask/templates/case_attributes.html
index 9ed02ed4..505a73f8 100644
--- a/wqflask/wqflask/templates/case_attributes.html
+++ b/wqflask/wqflask/templates/case_attributes.html
@@ -95,38 +95,35 @@
-
- Header |
- Description |
- Actions |
-
-
- {% for id_, name, description in case_attributes %}
-
- {{ name }} |
- {{description}} |
-
-
-
-
- |
-
- {% endfor %}
-
+
+ Case Attribute |
+ Description |
+ Actions |
+
+
+ {% for id_, name, description in case_attributes %}
+
+ {{ name }} |
+ {{description}} |
+
+
+
+
+ |
+
+ {% endfor %}
+
Please Review This Changes
-
{% if modifications %}
- Modified Data:
-
+ Modify Existing Case Attributes
- Case Attribute Edits |
- |
+ Diff |
+ Action |
- {{ modifications }}
{% for data in modifications %}
{% set reject_url = "" %}
{% set approve_url = "" %}
@@ -159,146 +156,204 @@
{% endfor %}
+
+ {% endif %}
+ {% if deletions %}
+ Delete Existing Case Attributes
+
+
+ Case Attribute |
+ Description |
+ Action |
+
+
+ {% for data in deletions %}
+ {% set reject_url = "" %}
+ {% set approve_url = "" %}
+
+ {{data.get("name")}} |
+ {{data.get("description")}} |
+
+
+
+ |
+
+ {% endfor %}
+
+ {% endif %}
+ {% if inserts %}
+ Insert New Case Attributes
+
+
+ Case Attribute |
+ Description |
+ Action |
+
+
+ {% for data in inserts %}
+ {% set reject_url = "" %}
+ {% set approve_url = "" %}
+
+ {{data.get("name")}} |
+ {{data.get("description")}} |
+
+
+
+ |
+
+ {% endfor %}
+
+
{% endif %}
-{%endblock%}
+ {%endblock%}
-{% block js %}
-
-
+
-{% endblock %}
+
+ {% endblock %}
--
cgit v1.2.3