Files
account_store/templates/blocks/profile/b_support_chat.html
2023-08-11 14:11:50 +03:00

68 lines
3.0 KiB
HTML

{% load static %}
{#{% load static %}#}
{# <div class="insert-tech-place">#}
<div class="container-messenger">
<div class="title-profile-cont">
<h1>Техническая поддержка</h1>
</div>
{% if ticket %}
<div class="name_ticket">
<span>{{ ticket.name }}</span>
</div>
<div class="{% if user.is_staff %}block-chat{% else %}block-chat width-100{% endif %}">
{% if user.is_staff or ticket.manager %}
<div class="container-header-chat">
<div class="header-chat-left-part">
<img class="chat-avatar" src="{% static "delete_later/Avatar.png" %}">
<span class="chat-username">{{ ticket.manager.last_name }} {{ ticket.manager.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="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 }},{{ ticket.owner.id }})" placeholder="Отправить сообщение">
</div>
<div class="right-part-block-enter-message">
<button class="attach-file-btn-message" onclick="attachFilemeassge()"></button>
<button class="send-message" onclick="sendMessage({{ ticket.id }},{{ user.id }},{{ ticket.owner.id }})"></button>
</div>
</div>
</div>
{% endif %}
{% if user.is_staff %}
<div class="block-list-of-users">
{% include "blocks/profile/b_list_of_tickets_support_chat.html" %}
</div>
{% endif %}
</div>
{#</div>#}