|
|
|
|
@ -1,6 +1,21 @@ |
|
|
|
|
{% extends 'partials/base.html' %} |
|
|
|
|
|
|
|
|
|
{% load common_tags %} |
|
|
|
|
{% load thumbnail %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block head_css %} |
|
|
|
|
<style> |
|
|
|
|
.-live-image-upload-container .-position-relative-parent {position: relative} |
|
|
|
|
|
|
|
|
|
.-live-image-upload-container .-image-delete, |
|
|
|
|
.-live-image-upload-container .-live-image-delete { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0; |
|
|
|
|
right: 0; |
|
|
|
|
background-color: white; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
{% block content %} |
|
|
|
|
{% include 'partials/header.html' %} |
|
|
|
|
@ -26,7 +41,8 @@ |
|
|
|
|
<div class="textAreaBlock2 text-nn box-sizing disTab"> |
|
|
|
|
<p>Специализации</p> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="-spec-select-container"> |
|
|
|
|
<div class="col-lg-3"> |
|
|
|
|
<input type='hidden' class="-spec-select -spec-select-level-1" style="width: 100%"> |
|
|
|
|
</div> |
|
|
|
|
@ -43,9 +59,9 @@ |
|
|
|
|
<input type='hidden' class="-spec-select -spec-select-level-4" style="width: 100%"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<input type="hidden" id="chosenSpecId" name="{{ form.specialization.html_name }}" |
|
|
|
|
<input type="hidden" class="-chosen-spec-id" name="{{ form.specialization.html_name }}" |
|
|
|
|
value="{{ form.specialization.value }}"> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="textAreaBlock2 text-nn box-sizing disTab"> |
|
|
|
|
<p>Бюджет{{ form.budget.errors.as_text }}</p> |
|
|
|
|
@ -82,6 +98,47 @@ |
|
|
|
|
<p>Классификация здания</p> |
|
|
|
|
{{ form.building_classification}} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="textAreaBlock2 text-nn box-sizing disTab -live-image-upload-container"> |
|
|
|
|
<p>Фотографии</p> |
|
|
|
|
|
|
|
|
|
{% for photo in form.photos.field.queryset.all %} |
|
|
|
|
<div class="col-lg-3 -image-widget"> |
|
|
|
|
<div class="-position-relative-parent" style="display: inline-block"> |
|
|
|
|
<a href="#" onclick="return false" class="btn close -image-delete">×</a> |
|
|
|
|
|
|
|
|
|
{% thumbnail photo.img "200x200" crop="center" as img %} |
|
|
|
|
<img src="{{ img.url }}"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<input type="checkbox" name="{{ form.photos.html_name }}" value="{{ photo.pk }}" checked style='display: none'> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
<script type="text/x-template" class="-templ"> |
|
|
|
|
<% images.forEach(function(image) { %> |
|
|
|
|
<div class="col-lg-3"> |
|
|
|
|
<div class="-position-relative-parent" style="display: inline-block"> |
|
|
|
|
<a href="#" onclick="return false" data-image-id="<%- image.id %>" class="btn close -live-image-delete">×</a> |
|
|
|
|
<img src="<%- image.smallThumbnailUrl %>"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<input type="checkbox" name="{{ form.live_images.html_name }}" value="<%- image.id %>" checked style='display: none'> |
|
|
|
|
</div> |
|
|
|
|
<% }) %> |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<div class="-res"></div> |
|
|
|
|
|
|
|
|
|
<div class="col-xs-12"> |
|
|
|
|
<input type="file" name="image" multiple class="-live-image-upload-field" style="display: none"> |
|
|
|
|
|
|
|
|
|
<a href="#" onclick="$(this).closest('.-live-image-upload-container').find('.-live-image-upload-field').first().click(); return false" class="btn btn-default add_file_to_port"> |
|
|
|
|
Выберите файлы |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="polsF1 polsF2 disTab"> |
|
|
|
|
|
|
|
|
|
|