-
+
{% endblock %}
{% block js_block %}
-
+ });
+ });
+
{% endblock %}
diff --git a/projects/templates/_trash/testport.html b/projects/templates/_trash/testport.html
index b21ecc8..ad62e97 100644
--- a/projects/templates/_trash/testport.html
+++ b/projects/templates/_trash/testport.html
@@ -1,18 +1,18 @@
diff --git a/projects/templates/chattest.html b/projects/templates/chattest.html
index 2ab5cc3..c6caa23 100644
--- a/projects/templates/chattest.html
+++ b/projects/templates/chattest.html
@@ -3,7 +3,7 @@
+{% endfor %}
diff --git a/projects/templates/comparison.html b/projects/templates/comparison.html
index 6a0b4ce..c0fb584 100644
--- a/projects/templates/comparison.html
+++ b/projects/templates/comparison.html
@@ -4,155 +4,159 @@
{% load i18n %}
{% block content %}
- {% include 'partials/header.html' %}
-
-
-
-
-
Сравнение кандидатов по проекту
-
-
-
-
-
{{ object }}
-
-
-
- | № |
- Кандидат |
- Цена |
- Срок |
- Описание |
- Рейтинги/отзывы |
- Безопасные сделки |
- Решение |
-
-
-
-
- {% for cand in object.candidates.all %}
-
- | {{ cand.position }} |
-
-
- {% if cand.answer.author|class_name == 'User' %}
- {% firstof cand.answer.author.get_full_name.strip cand.answer.author.username %}
- {% elif cand.answer.author|class_name == 'Team' %}
- {% firstof cand.answer.author.name.strip cand.answer.author.username %}
- {% endif %}
- |
-
- {{ cand.answer.budget }} |
-
-
- {% if cand.answer.term_type == 'project' %}
- За проект
- {% elif cand.answer.term and cand.answer.term_type %}
- {% morph cand.answer.term TERM_TYPE_MORPHS|get:cand.answer.term_type %}
- {% endif %}
- |
-
-
-
- |
-
-
-
-
- - {{ cand.answer.author.rating }}
-
- -
- +0 0 - 0
-
-
- {% if cand.answer.author.cro %}
- -
- СРО
-
- {% endif %}
-
- |
-
-
- 0
- {% if cand.answer.secure_deal_only %}
- Готов работать по безопасной сделке
- {% endif %}
- |
-
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% include 'partials/footer.html' %}
-
+ {% include 'partials/header.html' %}
+
+
+
+
+
Сравнение кандидатов по проекту
+
+
+
+
+
{{ object }}
+
+
+
+ | № |
+ Кандидат |
+ Цена |
+ Срок |
+ Описание |
+ Рейтинги/отзывы |
+ Безопасные сделки |
+ Решение |
+
+
+
+
+ {% for cand in object.candidates.all %}
+
+ | {{ cand.position }} |
+
+
+ {% if cand.answer.author|class_name == 'User' %}
+ {% firstof cand.answer.author.get_full_name.strip cand.answer.author.username %}
+ {% elif cand.answer.author|class_name == 'Team' %}
+ {% firstof cand.answer.author.name.strip cand.answer.author.username %}
+ {% endif %}
+ |
+
+ {{ cand.answer.budget }} |
+
+
+ {% if cand.answer.term_type == 'project' %}
+ За проект
+ {% elif cand.answer.term and cand.answer.term_type %}
+ {% morph cand.answer.term TERM_TYPE_MORPHS|get:cand.answer.term_type %}
+ {% endif %}
+ |
+
+
+
+ |
+
+
+
+
+ - {{ cand.answer.author.rating }}
+
+ -
+ +0 0
+ - 0
+
+
+ {% if cand.answer.author.cro %}
+ -
+ СРО
+
+ {% endif %}
+
+ |
+
+
+ 0
+ {% if cand.answer.secure_deal_only %}
+ Готов работать по безопасной сделке
+ {% endif %}
+ |
+
+
+
+ |
+
+ {% endfor %}
+
+
+
+
+ {% include 'partials/footer.html' %}
+
{% endblock %}
{% block js_block %}
-
+ return ui;
+ };
+ $("#compTable tbody").sortable({
+ forcePlaceholderSize: true,
+ forceHelperSize: true,
+ items: 'tr',
+ update: function () {
+ var serial = $('#compTable tbody').sortable('serialize', {key: 'items[]', attribute: 'data-class'});
+ console.log(serial);
+ $.ajax({
+ url: '/projects/candidate/comparison/sort/',
+ method: 'POST',
+ beforeSend: function (xhr) {
+ xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
+ },
+ data: serial,
+ dataType: 'json',
+ success: function (json) {
+
+ console.log(json);
+ },
+ error: function (jqXHR, e) {
+ console.log(jqXHR);
+ console.log(e);
+ }
+ });
+ },
+ helper: fixHelper,
+
+ }).disableSelection();
+ ;
+ });
+
{% endblock %}
diff --git a/projects/templates/contractor_portfolio_edit.html b/projects/templates/contractor_portfolio_edit.html
index ecb308d..bb3b989 100644
--- a/projects/templates/contractor_portfolio_edit.html
+++ b/projects/templates/contractor_portfolio_edit.html
@@ -1,177 +1,184 @@
{% extends 'partials/base.html' %}
{% load thumbnail %}
-
+{% load i18n %}
{% block head_css %}
-
+
{% endblock %}
{% block content %}
- {% include 'partials/header.html' %}
+ {% include 'partials/header.html' %}
-
-
-
+
+
-
+
+
{% trans 'project_stage1' %} {{ form.specialization.errors.as_text }}
+
+
-
+
+
{% trans 'project_stage2' %}
+
+
-
+
+
{% trans 'project_stage3' %}
+
+
+
+
+
{% trans 'project_stage4' %}
+
+
-
+
-
Бюджет{{ form.budget.errors.as_text }}
-
-
-
-
-
- {{ form.currency}}
-
+
Бюджет{{ form.budget.errors.as_text }}
+
+
+ {{ form.currency }}
+
+
+
-
Срок выполнения{{ form.budget.errors.as_text }}
-
-
-
-
-
- {{ form.term_type }}
-
+
Срок выполнения{{ form.budget.errors.as_text }}
+
+
+
+
+
+ {{ form.term_type }}
-
+
+
-
+
-
Вид строительства
- {{ form.construction_type}}
+
Вид строительства
+ {{ form.construction_type }}
-
Классификация здания
- {{ form.building_classification}}
+
Классификация здания
+ {{ form.building_classification }}
-
-
Фотографии
-
- {% for photo in form.photos.field.queryset.all %}
-
- {% endfor %}
-
-
-
-
-
-
-
-
-
- Выберите файлы
-
+
Фотографии
+
+ {% for photo in form.photos.field.queryset.all %}
+
-
+ {% endfor %}
+
+
+
+
+
+
-
- {% include 'partials/footer.html' %}
+
+
+ {% include 'partials/footer.html' %}
+
{% endblock %}
diff --git a/projects/templates/customer_project_create.html b/projects/templates/customer_project_create.html
index 58d54c2..bba6cd8 100644
--- a/projects/templates/customer_project_create.html
+++ b/projects/templates/customer_project_create.html
@@ -1,346 +1,410 @@
{% extends 'partials/base.html' %}
+{% load i18n %}
{% block head_css %}
-
+
{% endblock %}
{% block content %}
- {% include 'partials/modals/project_work_type_suggestion.html' %}
- {% include 'partials/header.html' %}
+ {% include 'partials/modals/project_work_type_suggestion.html' %}
+ {% include 'partials/header.html' %}
-