From a01b95eab609bb30c42ef31babc9ab4a72c0d304 Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Wed, 26 Aug 2026 21:53:16 +0530 Subject: [PATCH] Add client quick actions and live search --- .../templates/clients/business_structure.html | 29 ++++++-- .../clients/templates/clients/management.html | 69 ++++++++++++++++--- 2 files changed, 83 insertions(+), 15 deletions(-) diff --git a/app/modules/clients/templates/clients/business_structure.html b/app/modules/clients/templates/clients/business_structure.html index 37b4c64..57a50e7 100644 --- a/app/modules/clients/templates/clients/business_structure.html +++ b/app/modules/clients/templates/clients/business_structure.html @@ -9,7 +9,7 @@ {% if can_edit %}
-
+

Add Business Unit

@@ -20,12 +20,12 @@
-
+

Add Client Branch

@@ -38,11 +38,11 @@
-
+

Add Registration

- - + +
{% endif %}{% else %}No registrations added.{% endfor %}
+ + + {% endblock %} diff --git a/app/modules/clients/templates/clients/management.html b/app/modules/clients/templates/clients/management.html index d0e11ed..916ba4e 100644 --- a/app/modules/clients/templates/clients/management.html +++ b/app/modules/clients/templates/clients/management.html @@ -25,11 +25,11 @@ {% endfor %} -
+
- +
@@ -80,7 +80,7 @@ {% for node in hierarchy %} {% set client = node.client %} -
+
@@ -97,10 +97,15 @@
{{ client.client_type }}
{{ node.business_count }}business
{{ node.branch_count }}branch
-
- View - Manage Structure - {% if can_edit %}Edit{% endif %} +
+ {% if can_edit %} + + Business + + Branch + + Registration + {% endif %} + View + Manage + {% if can_edit %}Edit{% endif %}
@@ -120,7 +125,13 @@
{{ business.business_code }}{% if business.trade_name %} · Trade: {{ business.trade_name }}{% endif %}{% if business.nature_of_business %} · {{ business.nature_of_business }}{% endif %}
- Manage business +
+ {% if can_edit %} + + Branch + + Registration + {% endif %} + Manage business +
{% for branch_node in business_node.branches %} @@ -132,7 +143,12 @@ {{ branch.branch_code }}{% if branch.city %} · {{ branch.city }}{% endif %}{% if branch.state %}, {{ branch.state }}{% endif %} {% if branch.is_primary %}Primary Branch{% endif %} -
{{ branch_node.registrations|length }} registration{{ '' if branch_node.registrations|length == 1 else 's' }}
+
+ {{ branch_node.registrations|length }} registration{{ '' if branch_node.registrations|length == 1 else 's' }} + {% if can_edit %} + + Registration + {% endif %} +
{% if branch_node.registrations %}
@@ -213,4 +229,39 @@
{% endif %} + + + {% endblock %}