|
|
|
|
@ -369,7 +369,7 @@ |
|
|
|
|
<img src="{{ STATIC_URL }}img/upload-boss_sign.png" /> |
|
|
|
|
{% endif %} |
|
|
|
|
{{ form.boss_sign.errors }} |
|
|
|
|
<a href="#" class='del_image'></a> |
|
|
|
|
<a href="#" class='del_image{% if not form.boss_sign.value %} hidden{% endif %}'></a> |
|
|
|
|
</div> |
|
|
|
|
<p style="position: absolute; margin-top: 65px; font-size: 11px; padding: 2px 0 0 25px;color:#c5c5c5;font-style: italic;">Подпись руководителя</p> |
|
|
|
|
<div class='hidden'> |
|
|
|
|
@ -384,7 +384,7 @@ |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{{ form.glavbuh_sign.errors }} |
|
|
|
|
<a href="#" class='del_image'></a> |
|
|
|
|
<a href="#" class='del_image{% if not form.glavbuh_sign.value %} hidden{% endif %}'></a> |
|
|
|
|
</div> |
|
|
|
|
<p style="position: absolute; margin-top:65px;margin-left: 230px; font-size: 11px; padding: 2px 0 0 0;color:#c5c5c5;font-style: italic;">Подпись бухгалтера</p> |
|
|
|
|
<div class='hidden'> |
|
|
|
|
@ -396,23 +396,24 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="clear"></div> |
|
|
|
|
|
|
|
|
|
<div id="stamp" class="field img_load"> |
|
|
|
|
<div class="profile_label"> |
|
|
|
|
Печать и логотип |
|
|
|
|
</div> |
|
|
|
|
<div id="stamp" class="field img_load"> |
|
|
|
|
<div class="profile_field rel img_field"> |
|
|
|
|
{% if form.stamp.value %} |
|
|
|
|
<img src="{{ form.stamp.value.url }}" /> {# если уже есть картинка, показать ее #} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{{ STATIC_URL }}img/upload-stamp.png" /> |
|
|
|
|
{% endif %} |
|
|
|
|
<a href="#" class='del_image'></a> |
|
|
|
|
<a href="#" class='del_image{% if not form.stamp.value %} hidden{% endif %}'></a> |
|
|
|
|
</div> |
|
|
|
|
<p style="position: absolute;margin: 170px 0 0 355px;color: #c5c5c5;font-size: 11px;padding: 2px 0 0 0;font-style: italic;">Печать</p> |
|
|
|
|
<div class='hidden'> |
|
|
|
|
{{ form.stamp }} |
|
|
|
|
{{ form.del_stamp }} |
|
|
|
|
{{ form.stamp.errors }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div id="logo" class="field img_load"> |
|
|
|
|
<div class="profile_field rel img_field"> |
|
|
|
|
@ -421,7 +422,7 @@ |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{{ STATIC_URL }}img/upload-logo.png" /> |
|
|
|
|
{% endif %} |
|
|
|
|
<a href="#" class='del_image'></a> |
|
|
|
|
<a href="#" class='del_image{% if not form.logo.value %} hidden{% endif %}'></a> |
|
|
|
|
</div> |
|
|
|
|
<p style="position: absolute;margin: 170px 0 0 550px;color: #c5c5c5;font-size: 11px;padding: 2px 0 0 0;font-style: italic;">Логотип</p> |
|
|
|
|
<div class='hidden'> |
|
|
|
|
@ -431,7 +432,6 @@ |
|
|
|
|
<div class="clear"></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="clear"></div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="buttons field profile_btns"> |
|
|
|
|
<input type="submit" name="submit" class="save yellow-btn" value="Сохранить" /> |
|
|
|
|
@ -480,8 +480,9 @@ |
|
|
|
|
var this_id = $(this).closest('.img_load').attr('id'); |
|
|
|
|
var tmb_id = 'id_tmb_' + this_id.substring(3); |
|
|
|
|
$('#' + tmb_id).val(''); |
|
|
|
|
$('#' + this_id + ' img').attr('src', '/static/img/upload-' + this_id + '.png'); |
|
|
|
|
$('#' + this_id + ' img').attr('src', '{{ STATIC_URL }}/img/upload-' + this_id + '.png'); |
|
|
|
|
$('#' + this_id + '-clear_id').attr('checked', true); |
|
|
|
|
$('#' + this_id + ' .del_image').hide(); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
var getPic = function(data){ |
|
|
|
|
@ -489,6 +490,7 @@ |
|
|
|
|
var tmb_id = '#id_tmb_' + data['elm_id'].substring(3); |
|
|
|
|
$(elm_id + ' img').attr('src', data['pic']) |
|
|
|
|
$(tmb_id).val(data['full_pic']); |
|
|
|
|
$(elm_id + ' .del_image').show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$('.img_load input[type=file]').on('change', function(e){ |
|
|
|
|
|