diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index da627f8..dbc93e1 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -89,7 +89,7 @@ chatSocket.onmessage = function (e) { } } if (data.unread_msgs_count > 0){ - let list_unrd = document.querySelectorAll(".unredmessages_value_text") + let list_unrd = document.querySelectorAll(".qs") let i = 0 for (i;i < list_unrd.length;i++){ list_unrd[i].innerHTML = data.unread_msgs_count.toString() diff --git a/templates/blocks/profile/b_list_of_tickets_support_chat.html b/templates/blocks/profile/b_list_of_tickets_support_chat.html index c901d5e..b21bf53 100644 --- a/templates/blocks/profile/b_list_of_tickets_support_chat.html +++ b/templates/blocks/profile/b_list_of_tickets_support_chat.html @@ -1,19 +1,9 @@ {% load static %} -Неразобранные тикеты -
- {% if tickets_wo_manager %} - {% for item in tickets_wo_manager %} - {% include "widgets/w_chat_right_panel_tickets.html" %} - {% endfor %} - {% endif %} - +
+ {% include "widgets/tickets_wo_manager.html" %}
-
- Тикеты в работе - {% if tickets_for_manager %} - {% for item in tickets_for_manager %} - {% include "widgets/w_chat_right_panel_tickets.html" %} - {% endfor %} - {% endif %} + +
+ {% include "widgets/tickets_w_manager.html" %}
\ No newline at end of file diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index 6f6e029..f39664a 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -11,6 +11,12 @@

Поиск перевозчика

+
+
+ + +
+
diff --git a/templates/widgets/tickets_w_manager.html b/templates/widgets/tickets_w_manager.html new file mode 100644 index 0000000..7a041d7 --- /dev/null +++ b/templates/widgets/tickets_w_manager.html @@ -0,0 +1,9 @@ +{% load static %} +
+ Тикеты в работе + {% if tickets_for_manager %} + {% for item in tickets_for_manager %} + {% include "widgets/w_chat_right_panel_tickets.html" %} + {% endfor %} + {% endif %} +
\ No newline at end of file diff --git a/templates/widgets/tickets_wo_manager.html b/templates/widgets/tickets_wo_manager.html new file mode 100644 index 0000000..162d9a4 --- /dev/null +++ b/templates/widgets/tickets_wo_manager.html @@ -0,0 +1,12 @@ +{% load static %} + + +Неразобранные тикеты +
+ {% if tickets_wo_manager %} + {% for item in tickets_wo_manager %} + {% include "widgets/w_chat_right_panel_tickets.html" %} + {% endfor %} + {% endif %} + +
\ No newline at end of file