remotes/origin/PR-39
ArturBaybulatov 9 years ago
parent 75f5907f0c
commit 2c0c1246be
  1. 13
      users/templates/contractor_profile.html

@ -474,7 +474,7 @@
{% thumbnail diplom.img "210x334" crop="center" as im %}
<div class="imgGal"
style="background: url('{{ im.url }}') no-repeat center;">
<a href="{{ im.url }}" class='open-modal-image'>
<a href="{{ diplom.img.url }}" class='open-modal-image'>
<div class="imgFigure"></div>
</a>
</div>
@ -514,7 +514,7 @@
{% thumbnail cro.img "210x334" crop="center" as im %}
<div class="imgGal"
style="background: url('{{ im.url }}') no-repeat center;">
<a href="{{ im.url }}" class='open-modal-image'>
<a href="{{ cro.img.url }}" class='open-modal-image'>
<div class="imgFigure"></div>
</a>
</div>
@ -968,6 +968,15 @@
$("#resume-success").html("");
var formData = new FormData();
formData.append('resume_file', e.target.files[0]);
var file = e.target.files[0]
var allowedExts = ['.pdf','.doc','.docx','.xml','.odt','.uot','.dot','.rtf','.txt','.uop','.pptx','.odp','.html']
if (!_.includes(path.extname(file.name), allowedExts)) {
alert('Файл не подходит. Выберите документ')
return
}
$.ajax({
url:'/api/contractorresume/{{ contractor.contractor_resume.pk }}/',
method:'PUT',

Loading…
Cancel
Save