#ARC-22 Restore migrations all

remotes/origin/setup
Mukhtar 10 years ago
parent 5797457346
commit 5715a301e2
  1. 0
      chat/migrations_mukhtar/0001_initial.py
  2. 0
      chat/migrations_mukhtar/0002_auto_20160608_1555.py
  3. 0
      chat/migrations_mukhtar/0003_auto_20160629_1914.py
  4. 0
      chat/migrations_mukhtar/0004_auto_20160630_1204.py
  5. 0
      chat/migrations_mukhtar/0005_notes.py
  6. 0
      chat/migrations_mukhtar/0006_auto_20160704_1811.py
  7. 0
      chat/migrations_mukhtar/__init__.py
  8. 83
      chat/templates/chat_contractor.html
  9. 43
      chat/templates/chat_customer.html
  10. 0
      common/migrations_mukhtar/0001_initial.py
  11. 0
      common/migrations_mukhtar/0002_auto_20160615_1625.py
  12. 0
      common/migrations_mukhtar/0003_mainpage.py
  13. 0
      common/migrations_mukhtar/0004_settings.py
  14. 0
      common/migrations_mukhtar/__init__.py
  15. 0
      projects/migrations_mukhtar/0001_initial.py
  16. 0
      projects/migrations_mukhtar/0002_auto_20160519_1022.py
  17. 0
      projects/migrations_mukhtar/0003_auto_20160519_1312.py
  18. 0
      projects/migrations_mukhtar/0004_auto_20160519_1338.py
  19. 0
      projects/migrations_mukhtar/0005_auto_20160524_1053.py
  20. 0
      projects/migrations_mukhtar/0006_auto_20160524_1208.py
  21. 0
      projects/migrations_mukhtar/0007_auto_20160525_0948.py
  22. 0
      projects/migrations_mukhtar/0008_auto_20160525_1044.py
  23. 0
      projects/migrations_mukhtar/0009_auto_20160525_1524.py
  24. 0
      projects/migrations_mukhtar/0010_auto_20160525_1525.py
  25. 0
      projects/migrations_mukhtar/0011_auto_20160525_1526.py
  26. 0
      projects/migrations_mukhtar/0012_auto_20160530_1355.py
  27. 0
      projects/migrations_mukhtar/0013_auto_20160602_1203.py
  28. 0
      projects/migrations_mukhtar/0014_auto_20160602_1559.py
  29. 0
      projects/migrations_mukhtar/0015_auto_20160602_1606.py
  30. 0
      projects/migrations_mukhtar/0016_auto_20160603_1140.py
  31. 0
      projects/migrations_mukhtar/0017_auto_20160606_1659.py
  32. 0
      projects/migrations_mukhtar/0018_auto_20160607_1915.py
  33. 0
      projects/migrations_mukhtar/0019_auto_20160607_1916.py
  34. 0
      projects/migrations_mukhtar/0020_auto_20160608_1555.py
  35. 0
      projects/migrations_mukhtar/0021_auto_20160608_1602.py
  36. 0
      projects/migrations_mukhtar/0022_auto_20160608_1605.py
  37. 0
      projects/migrations_mukhtar/0023_auto_20160608_1609.py
  38. 0
      projects/migrations_mukhtar/0024_auto_20160609_1808.py
  39. 0
      projects/migrations_mukhtar/0025_auto_20160609_1916.py
  40. 0
      projects/migrations_mukhtar/0026_auto_20160610_1204.py
  41. 0
      projects/migrations_mukhtar/0027_auto_20160610_1231.py
  42. 0
      projects/migrations_mukhtar/0028_auto_20160610_1301.py
  43. 0
      projects/migrations_mukhtar/0029_project_active.py
  44. 0
      projects/migrations_mukhtar/0030_auto_20160610_1430.py
  45. 0
      projects/migrations_mukhtar/0031_auto_20160610_1434.py
  46. 0
      projects/migrations_mukhtar/0032_auto_20160615_1610.py
  47. 0
      projects/migrations_mukhtar/0033_auto_20160621_1057.py
  48. 0
      projects/migrations_mukhtar/0034_auto_20160622_1200.py
  49. 0
      projects/migrations_mukhtar/0035_auto_20160630_1635.py
  50. 0
      projects/migrations_mukhtar/0036_auto_20160630_1846.py
  51. 0
      projects/migrations_mukhtar/0037_auto_20160704_1444.py
  52. 0
      projects/migrations_mukhtar/0038_auto_20160706_1249.py
  53. 0
      projects/migrations_mukhtar/0039_auto_20160707_1724.py
  54. 0
      projects/migrations_mukhtar/__init__.py
  55. 0
      reviews/migrations_mukhtar/0001_initial.py
  56. 0
      reviews/migrations_mukhtar/0002_auto_20160531_0906.py
  57. 0
      reviews/migrations_mukhtar/__init__.py
  58. 0
      specializations/migrations_mukhtar/0001_initial.py
  59. 0
      specializations/migrations_mukhtar/0002_auto_20160602_1203.py
  60. 0
      specializations/migrations_mukhtar/__init__.py
  61. 0
      users/migrations_mukhtar/0001_initial.py
  62. 0
      users/migrations_mukhtar/0002_team_groups.py
  63. 0
      users/migrations_mukhtar/0003_user_created_at.py
  64. 0
      users/migrations_mukhtar/0004_auto_20160524_1053.py
  65. 0
      users/migrations_mukhtar/0005_auto_20160524_1054.py
  66. 0
      users/migrations_mukhtar/0006_auto_20160525_0948.py
  67. 0
      users/migrations_mukhtar/0007_auto_20160525_1526.py
  68. 0
      users/migrations_mukhtar/0008_auto_20160525_1527.py
  69. 0
      users/migrations_mukhtar/0009_auto_20160602_1213.py
  70. 0
      users/migrations_mukhtar/0010_user_last_time_visit.py
  71. 0
      users/migrations_mukhtar/0011_user_contractor_specializations.py
  72. 0
      users/migrations_mukhtar/0012_user_status.py
  73. 0
      users/migrations_mukhtar/0013_auto_20160610_1703.py
  74. 0
      users/migrations_mukhtar/0014_auto_20160615_1611.py
  75. 0
      users/migrations_mukhtar/0015_auto_20160615_1747.py
  76. 0
      users/migrations_mukhtar/0016_auto_20160617_1815.py
  77. 0
      users/migrations_mukhtar/0017_user_phone.py
  78. 0
      users/migrations_mukhtar/0018_auto_20160710_1838.py
  79. 0
      users/migrations_mukhtar/0019_auto_20160710_1950.py
  80. 0
      users/migrations_mukhtar/0020_auto_20160711_1759.py
  81. 0
      users/migrations_mukhtar/0021_contractorresumefiles_resume.py
  82. 0
      users/migrations_mukhtar/__init__.py
  83. 0
      work_sell/migrations_mukhtar/0001_initial.py
  84. 0
      work_sell/migrations_mukhtar/0002_auto_20160607_1755.py
  85. 0
      work_sell/migrations_mukhtar/0003_auto_20160621_1259.py
  86. 0
      work_sell/migrations_mukhtar/0004_worksell_price.py
  87. 0
      work_sell/migrations_mukhtar/0005_auto_20160704_1449.py
  88. 0
      work_sell/migrations_mukhtar/0006_worksellphoto.py
  89. 0
      work_sell/migrations_mukhtar/0007_auto_20160705_1514.py
  90. 0
      work_sell/migrations_mukhtar/0008_auto_20160706_1249.py
  91. 0
      work_sell/migrations_mukhtar/0009_auto_20160707_1315.py
  92. 0
      work_sell/migrations_mukhtar/0010_auto_20160707_1401.py
  93. 0
      work_sell/migrations_mukhtar/0011_picture.py
  94. 0
      work_sell/migrations_mukhtar/__init__.py

@ -1,8 +1,8 @@
{% extends 'partials/base.html' %}
{% load staticfiles %}
{% load thumbnail %}
{% load thumbnail %}
{% block content %}
{% include 'partials/header.html' %}
{% include 'partials/header.html' %}
<div class="container mainScore">
<div class="row">
<div class="col-lg-12 allProjects">
@ -42,7 +42,8 @@
{% endthumbnail %}
</div>
<p class="nameMess">
<a href="#">{{ contact.username }}{{ contact.username }}{{ contact.first_name }} {{ contact.last_name }}</a>
<a href="#">
{{ contact.username }}{{ contact.username }}{{ contact.first_name }} {{ contact.last_name }}</a>
</p>
<a href="javascript:void(0)" class="conMess">Контакты</a>
@ -60,8 +61,8 @@
</div>
<form id="contact-chat-form">
<input type="hidden" value="{{ request.user.pk }}" name="senderId" id="senderId" />
<input type="hidden" value="" name="recipentId" id="recipentId" />
<input type="hidden" value="{{ request.user.pk }}" name="senderId" id="senderId"/>
<input type="hidden" value="" name="recipentId" id="recipentId"/>
<textarea id="chat" name="chat_message" class="box-sizing"></textarea>
<div class="bunChat">
@ -138,7 +139,8 @@
<div class="messageBlock box-sizing disTab">
<p>Заказы</p>
{% for order in orders %}
<div class="orderBlock box-sizing order-block" data-recipent-id="{{ order.project.customer.pk }}" data-id="{{ order.id }}">
<div class="orderBlock box-sizing order-block"
data-recipent-id="{{ order.project.customer.pk }}" data-id="{{ order.id }}">
<span class="dimovChat"></span>
<p class="titleOB">
{{ order }}
@ -156,26 +158,26 @@
</a>
</div>
</div>
{% endfor%}
{% endfor %}
</div>
</div>
<div class="col-lg-6 commChat">
<div id="message-chat-order-space">
{# {% for msg in chat_messages %}#}
{# <div class="col-lg-12 insetCommChat {% if msg.sender.pk == request.user.pk %}youChat{% endif %}">#}
{# <div class="topCommChat">#}
{# <p class="nameCommChat {% if msg.sender.pk == request.user.pk %}greenNCC{% endif %}">{{ msg.sender.get_full_name }}</p>#}
{# <span>{{ msg.created }}</span>#}
{# </div>#}
{# <p class="textCommChat">{{ msg }}</p>#}
{# </div>#}
{# {% endfor %}#}
{# {% for msg in chat_messages %}#}
{# <div class="col-lg-12 insetCommChat {% if msg.sender.pk == request.user.pk %}youChat{% endif %}">#}
{# <div class="topCommChat">#}
{# <p class="nameCommChat {% if msg.sender.pk == request.user.pk %}greenNCC{% endif %}">{{ msg.sender.get_full_name }}</p>#}
{# <span>{{ msg.created }}</span>#}
{# </div>#}
{# <p class="textCommChat">{{ msg }}</p>#}
{# </div>#}
{# {% endfor %}#}
</div>
<form id="chat-contractor-order">
<input type="text" id="orderId" />
<input type="text" id="senderOrderId" value="{{ request.user.pk }}" />
<input type="text" id="recipentOrderId" />
<input type="text" id="orderId"/>
<input type="text" id="senderOrderId" value="{{ request.user.pk }}"/>
<input type="text" id="recipentOrderId"/>
<textarea id="chat" class="box-sizing"></textarea>
<div class="bunChat">
@ -192,7 +194,7 @@
<div class="col-lg-3 wrTAB">
<div class="textAreaBlock2 box-sizing disTab">
<p>Для заметок</p>
<textarea id="chat2" ></textarea>
<textarea id="chat2"></textarea>
<a href="javascript:void()">сохранить</a>
</div>
<div class="linkChatB box-sizing disTab">
@ -322,7 +324,8 @@
<div class="stepssBlock box-sizing disTab">
<p class="titleStepss">2 / Резервирование</p>
<p class="textStepss">
Резервирование заказчиком суммы оплаты по заказ. Деньги перечисляются и хранятся на сайте.
Резервирование заказчиком суммы оплаты по заказ. Деньги перечисляются и хранятся на
сайте.
</p>
<ul>
<li>Сумма еще не зарезервирована</li>
@ -345,16 +348,16 @@
{% endblock %}
{% block js_block %}
{# <script type="text/javascript" src="{% static 'js/chat.js' %}"></script>#}
{# <script type="text/javascript" src="{% static 'js/chat.js' %}"></script>#}
<script type="text/javascript">
/**
* Created by mukhtar on 04.07.16.
*/
var SocketHandler = function () {
var SocketHandler = function () {
var userId = {{ request.user.pk }};
var url = 'ws://127.0.0.1:8888/chat/' + userId +'/';
var url = 'ws://127.0.0.1:8888/chat/' + userId + '/';
var sock = new WebSocket(url);
var intervalId;
sock.onopen = function () {
@ -403,9 +406,9 @@ var SocketHandler = function () {
}
}
}
$(function () {
$(function () {
var currentChatUser = {{ request.user.pk }};
var socket = new SocketHandler();
var form = document.getElementById('message_form');
@ -419,6 +422,8 @@ $(function () {
$("#chat-contractor-order #recipentId").val(recipentId);
var inbox = document.getElementById('message-chat-order-space');
inbox.innerHTML = '';
$.ajax({
url: '/api/message',
type: 'GET',
@ -426,8 +431,15 @@ $(function () {
dataType: 'json',
success: function (json) {
$.each(json.results, function (i, v) {
var senderName = 'Вы';
var className = 'youChat';
if (v.sender.id == currentChatUser) {
senderName = v.sender.username;
className = '';
}
inbox.innerHTML += '<div class="col-lg-12 insetCommChat"><div class="topCommChat">' +
'<p class="nameCommChat">Иванов</p> <span>13.0.2016</span></div>' +
'<p class="nameCommChat">' + senderName + '</p> <span>' + v.created + '</span></div>' +
'<p class="textCommChat">' + v.text + '</p></div>';
});
}
@ -444,7 +456,12 @@ $(function () {
$.ajax({
url: '/api/message',
type: 'GET',
data: {csrfmiddlewaretoken: csrftoken, 'operand': 'in', 'sender_id':currentChatUser,'recipent_id': userId},
data: {
csrfmiddlewaretoken: csrftoken,
'operand': 'in',
'sender_id': currentChatUser,
'recipent_id': userId
},
dataType: 'json',
success: function (json) {
$.each(json.results, function (i, v) {
@ -452,13 +469,13 @@ $(function () {
console.log(v.sender.id);
var senderName = 'Вы';
var className = 'youChat';
if(v.sender.id == userId){
if (v.sender.id == userId) {
senderName = v.sender.username;
className = '';
}
inbox.innerHTML += '<div class="col-lg-12 insetCommChat '+ className+'"><div class="topCommChat">' +
'<p class="nameCommChat">'+ senderName +'</p> <span>'+ v.created +'</span></div>' +
inbox.innerHTML += '<div class="col-lg-12 insetCommChat ' + className + '"><div class="topCommChat">' +
'<p class="nameCommChat">' + senderName + '</p> <span>' + v.created + '</span></div>' +
'<p class="textCommChat">' + v.text + '</p></div>';
});
}
@ -484,12 +501,12 @@ $(function () {
var inbox = $('#message-chat-space').html();
$('#message-chat-space').html(inbox + '<div class="col-lg-12 insetCommChat"><div class="topCommChat">' +
'<p class="nameCommChat">Вы</p> <span>Сейчас</span></div>' +
'<p class="textCommChat">' + chatMessage +'</p></div>');
'<p class="textCommChat">' + chatMessage + '</p></div>');
$("#chat").val("");
});
});
});
</script>
{% endblock %}

@ -181,6 +181,49 @@
</form>
</div>
<div class="col-lg-3 wrTAB">
<p>Этапы работы</p>
<div class="stepssBlock box-sizing disTab">
<p class="titleStepss">1 / Согласование условий</p>
<p class="textStepss">
Обсуджение задания и условий выполнения работы. Подтверждение заказа исполнителем.
</p>
</div>
<div class="numberStepp box-sizing">
<div class="insetNumStepp">
<p class="titleNumStepp">
<span>Этап 1</span>
</p>
<div class="textAreaBlock2 box-sizing disTab">
<form>
<input type="text" value="Название этапа" />
<input type="text" value="Результат этапа" />
<input type="text" value="Срок этапа" />
<input type="text" value="Цена этапа" />
</form>
<a href="javascript:void()">сохранить</a>
</div>
</div>
</div>
<div class="numberStepp box-sizing">
<div class="insetNumStepp">
<p class="titleNumStepp">
<span>Этап 2</span>Название этапа
</p>
<p class="textNumStepp">
Результаты этапа: Готовый чертеж 1
</p>
<div>
<p>до 16.03.2015</p>
<span>30 000 <i class="fa fa-rub"></i></span>
</div>
</div>
</div>
<div class="textAreaBlock2 FFD box-sizing disTab">
<a href="javascript:void()">согласовать</a>
</div>
<div class="textAreaBlock2 box-sizing disTab">
<p>Для заметок</p>
<textarea id="chat2"></textarea>

Loading…
Cancel
Save