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 @@ - - - - - - - {% for id_, name, description in case_attributes %} - - - - - - {% endfor %} - + + + + + + + {% for id_, name, description in case_attributes %} + + + + + + {% endfor %} +
HeaderDescriptionActions
{{ name }}{{description}} - - - -
Case AttributeDescriptionActions
{{ name }}{{description}} + + + +

Please Review This Changes

- {% if modifications %} -

Modified Data:

- +

Modify Existing Case Attributes

- - + + - {{ modifications }} {% for data in modifications %} {% set reject_url = "" %} {% set approve_url = "" %} @@ -159,146 +156,204 @@ {% endfor %} +
Case Attribute EditsDiffAction
+ {% endif %} + {% if deletions %} +

Delete Existing Case Attributes

+ + + + + + + + {% for data in deletions %} + {% set reject_url = "" %} + {% set approve_url = "" %} + + + + + + {% endfor %} +
Case AttributeDescriptionAction
{{data.get("name")}} {{data.get("description")}} + + +
+ {% endif %} + {% if inserts %} +

Insert New Case Attributes

+ + + + + + + + {% for data in inserts %} + {% set reject_url = "" %} + {% set approve_url = "" %} + + + + + + {% endfor %} + +
Case AttributeDescriptionAction
{{data.get("name")}} {{data.get("description")}} + + +
{% endif %} -{%endblock%} + {%endblock%} -{% block js %} - - + -{% endblock %} + + {% endblock %} -- cgit v1.2.3