0.0.52
This commit is contained in:
@@ -209,12 +209,12 @@ function sendMessage(id_ticket=null,sender,receiver){
|
||||
data: JSON.stringify(data),
|
||||
success: function(data){
|
||||
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
document.querySelector(".container-messages").innerHTML = data.html;
|
||||
|
||||
},
|
||||
error: function (data){
|
||||
|
||||
document.querySelector(".info_profile").innerHTML = data.responseJSON.error;
|
||||
document.querySelector(".container-messages").innerHTML = data.responseJSON.error;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -21,6 +21,8 @@ function writeMessage(){
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function technicalSupport(){
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
|
||||
@@ -51,15 +51,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-messages">
|
||||
{% if not messages %}
|
||||
{% include "widgets/w_message.html" %}
|
||||
{% else %}
|
||||
{% for msg in messages %}
|
||||
{% include "widgets/w_message.html" %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include "blocks/profile/b_messages_container.html" %}
|
||||
|
||||
<div class="footer-chat">
|
||||
<div class="left-part-block-enter-message">
|
||||
|
||||
12
templates/blocks/profile/b_messages_container.html
Normal file
12
templates/blocks/profile/b_messages_container.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% load static %}
|
||||
|
||||
|
||||
<div class="container-messages">
|
||||
{% if not messages %}
|
||||
{% include "widgets/w_message.html" %}
|
||||
{% else %}
|
||||
{% for msg in messages %}
|
||||
{% include "widgets/w_message.html" %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -229,7 +229,7 @@
|
||||
{% if form.fields.weight.required %} required{% endif %}
|
||||
name="weight"
|
||||
value=""
|
||||
{% if form.initial.weight %}value="{{ form.initial.weight}}"{% endif %}
|
||||
{% if form.initial.weight %}value="{{ form.initial.weight }}"{% endif %}
|
||||
/>
|
||||
{% if not errors_off and form.errors and form.errors.weight %}
|
||||
<span>{{ form.errors.weight }}</span>
|
||||
|
||||
@@ -28,19 +28,21 @@
|
||||
</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">#}
|
||||
{# {% 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>#}
|
||||
|
||||
{% include "blocks/profile/b_messages_container.html" %}
|
||||
|
||||
{% if user.is_staff or ticket.manager %}
|
||||
<div class="footer-chat">
|
||||
|
||||
Reference in New Issue
Block a user