|
|
|
|
@ -122,7 +122,8 @@ |
|
|
|
|
<div class="modal-dialog" style="width:900px;"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">× |
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> |
|
|
|
|
× |
|
|
|
|
</button> |
|
|
|
|
<h4 class="modal-title">Добавить портфолио</h4> |
|
|
|
|
</div> |
|
|
|
|
@ -150,10 +151,13 @@ |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
<div class="insetBI insetBI2"> |
|
|
|
|
<form action="{% url 'projects:contractor-portfolio-trash' pk=p.pk %}" method="POST" novalidate> |
|
|
|
|
<form action="{% url 'projects:contractor-portfolio-trash' pk=p.pk %}" |
|
|
|
|
method="POST" novalidate> |
|
|
|
|
{% csrf_token %} |
|
|
|
|
<input type="hidden" name="next" value="{{ request.path }}"> |
|
|
|
|
<a href="#" onclick="$(this).closest('form').submit(); return false"><i class="fa fa-times"></i></a> |
|
|
|
|
<a href="#" |
|
|
|
|
onclick="$(this).closest('form').submit(); return false"><i |
|
|
|
|
class="fa fa-times"></i></a> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
@ -182,7 +186,8 @@ |
|
|
|
|
<div class="modal-dialog" style="width: 900px;"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">× |
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> |
|
|
|
|
× |
|
|
|
|
</button> |
|
|
|
|
<h4 class="modal-title">Добавить готовую работу</h4> |
|
|
|
|
</div> |
|
|
|
|
@ -198,7 +203,8 @@ |
|
|
|
|
<div class="insetCol box-sizing disTab"> |
|
|
|
|
|
|
|
|
|
{% thumbnail ws.get_cover "224x224" crop="center" as im %} |
|
|
|
|
<div class="imgGal" style="background:rgba(0, 0, 0, 0) url('{{ im.url }}') no-repeat scroll center center / cover ;"> |
|
|
|
|
<div class="imgGal" |
|
|
|
|
style="background:rgba(0, 0, 0, 0) url('{{ im.url }}') no-repeat scroll center center / cover ;"> |
|
|
|
|
<div class="imgFigure"></div> |
|
|
|
|
</div> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
@ -219,10 +225,13 @@ |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<div class="insetBI insetBI2"> |
|
|
|
|
<form action="{% url 'work_sell:contractor-worksell-trash' pk=ws.pk %}" method="POST" novalidate> |
|
|
|
|
<form action="{% url 'work_sell:contractor-worksell-trash' pk=ws.pk %}" |
|
|
|
|
method="POST" novalidate> |
|
|
|
|
{% csrf_token %} |
|
|
|
|
<input type="hidden" name="next" value="{{ request.path }}"> |
|
|
|
|
<a href="#" onclick="$(this).closest('form').submit(); return false"><i class="fa fa-times"></i></a> |
|
|
|
|
<a href="#" |
|
|
|
|
onclick="$(this).closest('form').submit(); return false"><i |
|
|
|
|
class="fa fa-times"></i></a> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
@ -244,10 +253,7 @@ |
|
|
|
|
<input type="file" name="upload"> |
|
|
|
|
<p>Загрузить резюме</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="upload2 up-l2"> |
|
|
|
|
<input type="file" name="upload"> |
|
|
|
|
<p>Загрузить файл</p> |
|
|
|
|
</div> |
|
|
|
|
{#w#} |
|
|
|
|
</div> |
|
|
|
|
<div class="col-lg-9 resume-block"> |
|
|
|
|
<div class="block-is box-sizing"> |
|
|
|
|
@ -271,35 +277,30 @@ |
|
|
|
|
<div class="list-summ-block"> |
|
|
|
|
<div class="col-lg-4"> |
|
|
|
|
<ul class="list-summ"> |
|
|
|
|
{% if contractor.website %} |
|
|
|
|
<li>{{ contractor.website }}</li> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<li>{{ contractor.email }}</li> |
|
|
|
|
|
|
|
|
|
{% if contractor.phone %} |
|
|
|
|
<li>{{ contractor.phone }}</li> |
|
|
|
|
<li>Россия, Москва</li> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-lg-6 col-lg-offset-2"> |
|
|
|
|
<div class="dashedCol4"> |
|
|
|
|
<p class="specUser"> |
|
|
|
|
Специализации: |
|
|
|
|
</p> |
|
|
|
|
<div class="insetSpec"> |
|
|
|
|
<span>Интерьеры</span> |
|
|
|
|
<span>2-й</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="insetSpec"> |
|
|
|
|
<span>Визуализация/3D</span> |
|
|
|
|
<span>45-й</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% specialization_widget contractor.pk %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-lg-12 wr-inset-pluss"> |
|
|
|
|
<div class="pluss-block"> |
|
|
|
|
<div class="pluss-block" id="resume-text-out"> |
|
|
|
|
{{ contractor.contractor_resume.text }} |
|
|
|
|
|
|
|
|
|
<a href="#" data-toggle="modal" data-target="#resume-text-edit">Редактировать</a> |
|
|
|
|
<a href="#" data-toggle="modal" data-target="#resume-text-edit"> |
|
|
|
|
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- Редактирование текста резюме (модальное окно)--> |
|
|
|
|
@ -307,19 +308,25 @@ |
|
|
|
|
<div class="modal-dialog" style="width:900px;"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
|
|
|
|
<button type="button" class="close" data-dismiss="modal" |
|
|
|
|
aria-hidden="true">× |
|
|
|
|
</button> |
|
|
|
|
<h4 class="modal-title">Редактировать текст резюме</h4> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="modal-body"> |
|
|
|
|
<div style="height: 180px;"> |
|
|
|
|
<form id="resume-edit-form"> |
|
|
|
|
<div class="textAreaBlock2 text-nn box-sizing disTab"> |
|
|
|
|
<p>Описание резюме</p> |
|
|
|
|
<textarea name="" id="text-new">{{ contractor.contractor_resume.text }}</textarea> |
|
|
|
|
<textarea name="text" |
|
|
|
|
id="text-new">{{ contractor.contractor_resume.text }}</textarea> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="searchF1 polsF1 polsFF links-filter"> |
|
|
|
|
<input class="btn-submit-link" type="submit" value="Сохранить"> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div class="modal-footer"></div> |
|
|
|
|
</div> |
|
|
|
|
@ -439,8 +446,37 @@ |
|
|
|
|
{% block js_block %} |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
var userId = '{{ contractor.pk }}'; |
|
|
|
|
|
|
|
|
|
$(function () { |
|
|
|
|
$('#resume-edit-form').on('submit', function (e) { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
var resumeEditUrl = "{% url 'users:contractor-resume-update' contractor.contractor_resume.pk %}"; |
|
|
|
|
var dataSerializer = $(this).serialize(); |
|
|
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
|
url: resumeEditUrl, |
|
|
|
|
method: 'POST', |
|
|
|
|
beforeSend: function (xhr) { |
|
|
|
|
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken')) |
|
|
|
|
}, |
|
|
|
|
data: dataSerializer, |
|
|
|
|
dataType: 'json', |
|
|
|
|
success: function (data) { |
|
|
|
|
console.log(data); |
|
|
|
|
if (data.status == 'ok') { |
|
|
|
|
$("#resume-text-out").html(data.text); |
|
|
|
|
$("#resume-text-edit").close(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
error: function (jqXHR, exception) { |
|
|
|
|
console.log(jqXHR); |
|
|
|
|
console.log(exception); |
|
|
|
|
console.log(jqXHR.statusCode); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#worksell-add-form').on('submit', function (e) { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
var dataSerializer = $(this).serialize(); |
|
|
|
|
@ -574,7 +610,8 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
dataType: 'json', |
|
|
|
|
done: function (e, data) {; |
|
|
|
|
done: function (e, data) { |
|
|
|
|
; |
|
|
|
|
$.each(data.result.files, function (index, file) { |
|
|
|
|
var htmlImg = '<div class="col-lg-4"><div class="insetCol box-sizing disTab"><div class="imgGal" style="background: url(+ file.url +) no-repeat center;"><div class="imgFigure"></div></div></div> ' + |
|
|
|
|
'<div class="insetCol2 box-sizing disTab"><p>Название</p><div class="buttonsImg" distab="">' + |
|
|
|
|
@ -607,7 +644,8 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
dataType: 'json', |
|
|
|
|
done: function (e, data) {; |
|
|
|
|
done: function (e, data) { |
|
|
|
|
; |
|
|
|
|
$.each(data.result.files, function (index, file) { |
|
|
|
|
var htmlImg = '<div class="col-lg-4"><div class="insetCol box-sizing disTab"><div class="imgGal" style="background: url(+ file.url +) no-repeat center;"><div class="imgFigure"></div></div></div> ' + |
|
|
|
|
'<div class="insetCol2 box-sizing disTab"><p>Название</p><div class="buttonsImg" distab="">' + |
|
|
|
|
|