|
|
|
@ -5,31 +5,34 @@ |
|
|
|
{% block content %} |
|
|
|
{% block content %} |
|
|
|
{% include 'partials/header.html' %} |
|
|
|
{% include 'partials/header.html' %} |
|
|
|
|
|
|
|
|
|
|
|
<div class="container mainScore"> |
|
|
|
<div class="container mainScore"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-lg-12"> |
|
|
|
<div class="col-lg-12"> |
|
|
|
<p class="titleScore">Сравнение кандидатов по проекту</p> |
|
|
|
<p class="titleScore">Сравнение кандидатов по проекту</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="titleBlockComparison disTab"> |
|
|
|
<div class="titleBlockComparison disTab"> |
|
|
|
<div class="triangle1"></div> |
|
|
|
<div class="triangle1"></div> |
|
|
|
<p>{{ object }}</p> |
|
|
|
<p>{{ object }}</p> |
|
|
|
<table class="compTable"> |
|
|
|
<table class="compTable" id="compTable"> |
|
|
|
<tr> |
|
|
|
<thead> |
|
|
|
<th>№</th> |
|
|
|
<tr> |
|
|
|
<th>Кандидат</th> |
|
|
|
<th>№</th> |
|
|
|
<th>Цена</th> |
|
|
|
<th>Кандидат</th> |
|
|
|
<th>Срок</th> |
|
|
|
<th>Цена</th> |
|
|
|
<th>Описание</th> |
|
|
|
<th>Срок</th> |
|
|
|
<th>Рейтинги/отзывы</th> |
|
|
|
<th>Описание</th> |
|
|
|
<th>Безопасные сделки</th> |
|
|
|
<th>Рейтинги/отзывы</th> |
|
|
|
<th>Решение</th> |
|
|
|
<th>Безопасные сделки</th> |
|
|
|
</tr> |
|
|
|
<th>Решение</th> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</thead> |
|
|
|
|
|
|
|
<tbody> |
|
|
|
{% for cand in object.candidates.all %} |
|
|
|
{% for cand in object.candidates.all %} |
|
|
|
<tr> |
|
|
|
<tr style="cursor:pointer" class="items[]_{{ cand.pk }}" data-class="items[]_{{ cand.pk }}"> |
|
|
|
<td>{{ forloop.counter }}</td> |
|
|
|
<td>{{ forloop.counter }}</td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
{{ cand.answer.contractor.get_full_name }} |
|
|
|
{{ cand.answer.contractor.get_full_name }} {{ cand.answer.contractor.username }} |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td>{{ cand.answer.budget }} <i class="fa fa-rub"></i></td> |
|
|
|
<td>{{ cand.answer.budget }} <i class="fa fa-rub"></i></td> |
|
|
|
@ -51,9 +54,9 @@ |
|
|
|
<small> - 0</small> |
|
|
|
<small> - 0</small> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% if cand.answer.contractor.cro %} |
|
|
|
{% if cand.answer.contractor.cro %} |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
СРО |
|
|
|
СРО |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
@ -73,10 +76,36 @@ |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</table> |
|
|
|
</tbody> |
|
|
|
</div> |
|
|
|
</table> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{% include 'partials/footer.html' %} |
|
|
|
{% include 'partials/footer.html' %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block js_block %} |
|
|
|
|
|
|
|
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js" |
|
|
|
|
|
|
|
integrity="sha256-eGE6blurk5sHj+rmkfsGYeKyZx3M4bG+ZlFyA7Kns7E=" crossorigin="anonymous"></script> |
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
$(function () { |
|
|
|
|
|
|
|
var fixHelper = function(e,ui) { |
|
|
|
|
|
|
|
ui.children().each(function(){ |
|
|
|
|
|
|
|
$(this).width($(this).width()); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
helper: fixHelper, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).disableSelection();; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
</script> |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
|