114 lines
6.1 KiB
HTML
114 lines
6.1 KiB
HTML
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% trans "Отправить сообщение" as p_send_msg %}
|
|
|
|
{#{% load static %}#}
|
|
|
|
|
|
{# <div class="insert-tech-place">#}
|
|
|
|
<div class="container-messenger support">
|
|
{# <div class="title-profile-cont">#}
|
|
{# <h1>Техническая поддержка</h1>#}
|
|
{# </div>#}
|
|
{% if user.is_staff or staff %}
|
|
<div class="menu_buttons curtain left
|
|
{% if mobile %}
|
|
{% if not ticket %}open
|
|
{% else %}close
|
|
{% endif %}
|
|
{% else %}
|
|
open
|
|
{% endif %}
|
|
{% if name.ticket %}margin{% endif %}"
|
|
data-name="<img style='width: 25px;display: block;position: relative;bottom: 0;' src='{% static "/img/svg/users-solid.svg" %}'>"
|
|
>
|
|
<div class="container_block_list_of_users">
|
|
{% include 'blocks/profile/b_list_of_tickets_support_chat.html' %}
|
|
</div>
|
|
{# <div class="handler_menu close" onclick="open_curtain_w_contacts()">#}
|
|
{# <img class="btns_f_curtain close left" src="{% static 'img/svg/arrow_f_curtain.svg' %}">#}
|
|
{# <div class="text_f_curtain left"><img style='width: 25px;display: block;position: relative;bottom: 0;transform: rotate(270deg);' src='{% static "/img/svg/users-solid.svg" %}'></div>#}
|
|
{# <img class="btns_f_curtain close right" src="{% static 'img/svg/arrow_f_curtain.svg' %}">#}
|
|
{# <div class="clear_both"></div>#}
|
|
{# </div>#}
|
|
</div>
|
|
<div class="handler_curtain_left {% if mobile %}{% if not ticket %}open{% else %}close{% endif %}{% else %}open{% endif %}{% if name.ticket %}margin{% endif %}" onclick="open_curtain_w_contacts()">
|
|
<div class="container_content_handler_curtain_left">
|
|
<img class="arrows_handler_curtain_left" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
|
|
<img class="filter_img" src='{% static "/img/svg/users-solid.svg" %}'>
|
|
<img class="arrows_handler_curtain_left" src="{% static 'img/svg/arrow_f_curtain.svg' %}">
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if not ticket %}
|
|
<div class="block_loader_chat">
|
|
<img class="loader_chat_f_sw_chats" src="{% static "/img/svg/loader.svg" %}" alt="loader">
|
|
</div>
|
|
{% endif %}
|
|
{% if ticket %}
|
|
<div class="name_ticket {% if not user.is_staff and not staff %}w_100{% endif %}">
|
|
<span>{{ ticket.name }}</span>
|
|
</div>
|
|
|
|
<div class="{% if user.is_staff %}block-chat{% else %}block-chat width-100{% endif %} support">
|
|
{% if user.is_staff or ticket.manager %}
|
|
<div class="container-header-chat">
|
|
<div class="header-chat-left-part">
|
|
<img class="chat-avatar" {% if cur_receiver.user_profile.avatar %}src="{{ cur_receiver.user_profile.avatar.url }}"{% else %}src="{% static "img/svg/user_icon_standart.png" %}"{% endif %}>
|
|
<span class="chat-username">{{ cur_receiver.last_name }} {{ cur_receiver.first_name }}</span>
|
|
</div>
|
|
<div class="header-chat-right-part">
|
|
<img class="header-icons-right-part-padding" src="{% static "img/svg/phone.svg" %}">
|
|
<img class="header-icons-right-part-padding" src="{% static "img/svg/info.svg" %}">
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{# <div class="container-messages">#}
|
|
{# {% if not messages %}#}
|
|
{# {% with text=ticket.text modifiedDT=ticket.modifiedDT %}#}
|
|
{# {% include "widgets/w_message.html" %}#}
|
|
{# {% endwith %}#}
|
|
{# {% else %}#}
|
|
{# {% for msg in messages %}#}
|
|
{# {% with text=msg.text modifiedDT=msg.modifiedDT %}#}
|
|
{# {% include "widgets/w_message.html" %}#}
|
|
{# {% endwith %}#}
|
|
{# {% endfor %}#}
|
|
{# {% endif %}#}
|
|
{# </div>#}
|
|
{# <div class="bottom_part_of_chats">#}
|
|
<div class="container-messages" data-user-id="{{ user.id }}" data-cur-receiver="{{ cur_receiver.id }}" data-ticket-id='{{ ticket.id }}'>
|
|
{% include "blocks/profile/b_messages_container.html" %}
|
|
</div>
|
|
|
|
|
|
<div class="footer-chat{% if not new_msg_allow %} hide{% endif %}">
|
|
|
|
<div class="left-part-block-enter-message">
|
|
<input class="enter-message-inp" onfocus="check_new_messages_timeout()" onkeypress="sendMessageEnter(event,{{ ticket.id }},{{ user.id }},{{ cur_receiver.id }})" placeholder="{{ p_send_msg }}">
|
|
</div>
|
|
{# <div class="right-part-block-enter-message">#}
|
|
{# <button class="attach-file-btn-message" onclick="attachFilemeassge(event,this,{{ ticket.id }},{{ user.id }},{{ cur_receiver.id }})"></button>#}
|
|
{# <button class="send-message" onclick="sendMessage({{ ticket.id }},{{ user.id }},{{ cur_receiver.id }})"></button>#}
|
|
{# </div>#}
|
|
<div class="right-part-block-enter-message">
|
|
{# <button class="attach-file-btn-message" onclick="attachFilemeassge(event,this,null,{{ user.id }},{{ cur_receiver.id }})"></button>#}
|
|
<input style="display: none;" type="file" onchange="attachFilemeassge(this,{{ ticket.id }},{{ user.id }},{{ cur_receiver.id }})" id="id_choce_file" multiple>
|
|
<label for="id_choce_file" class="attach-file-btn-message"></label>
|
|
<button class="send-message" onclick="sendMessage({{ ticket.id }},{{ user.id }},{{ cur_receiver.id }})"></button>
|
|
<img src="{% static "/img/svg/loader.svg" %}" class="loader_show_message">
|
|
{# <button class="send-message" onclick="send_ws_msg('message')"></button>#}
|
|
</div>
|
|
</div>
|
|
{# </div>#}
|
|
|
|
</div>
|
|
<div class="clear_both"></div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{#</div>#} |