From 12213d83c42fb532d3ba1f5e2d039cd6288d5684 Mon Sep 17 00:00:00 2001 From: borissedw Date: Mon, 14 Aug 2023 15:14:33 +0300 Subject: [PATCH] 0.0.135 --- static/css/styles(boris).css | 15 +++++++++++++ static/js/chat_sockets.js | 22 +++++++++++++------ templates/pages/p_results_find_route.html | 22 +++++++++++++++++-- .../widgets/w_chat_right_panel_tickets.html | 2 +- 4 files changed, 51 insertions(+), 10 deletions(-) diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index e168917..52daab9 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -679,6 +679,21 @@ border-radius: 10px; } +.container_form_search_carrier > form{ + width: 100%; + height: 100%; + display: flex; + padding: 20px 10px; +} + +.cont-el-form-search-carrier{ + flex-grow: 1; +} + +.cont-el-form-search-carrier > input{ + border:1px solid #E6E6E6; +} + .block-filters-find-route{ min-height: 660px; background: #FFFFFF; diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index dbc93e1..7c383a5 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -76,16 +76,24 @@ chatSocket.onmessage = function (e) { msg_cont.innerHTML = data.chat_html } + } - let list_of_users = document.querySelector(".block-list-of-users") - if (list_of_users !== null){ - if (data.users_list_html){ - list_of_users.innerHTML = data.users_list_html - if (el_tab !== null){ - document.querySelector(`[data-cur-receiver-item="${old_item_tab_user}"]` ).classList.add("select") - } + if (data.tickets_wo_manager_html) { + if (document.querySelector(".list_linked_tickets") !== null || document.querySelector(".list_unlinked_tickets") !== null) { + document.querySelector(".list_unlinked_tickets").innerHTML = data.tickets_wo_manager_html } + } else { + let list_of_users = document.querySelector(".block-list-of-users") + if (list_of_users !== null){ + if (data.users_list_html){ + list_of_users.innerHTML = data.users_list_html + if (el_tab !== null){ + document.querySelector(`[data-cur-receiver-item="${old_item_tab_user}"]` ).classList.add("select") + } + } + + } } } if (data.unread_msgs_count > 0){ diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index f39664a..2d34193 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -12,10 +12,28 @@
-
- +
+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
diff --git a/templates/widgets/w_chat_right_panel_tickets.html b/templates/widgets/w_chat_right_panel_tickets.html index cb19233..b7150f5 100644 --- a/templates/widgets/w_chat_right_panel_tickets.html +++ b/templates/widgets/w_chat_right_panel_tickets.html @@ -1,5 +1,5 @@ {% load static %} -
+