remotes/origin/yandex
Bachurin Sergey 11 years ago
parent be367f94b1
commit 44bef33e5c
  1. 2
      project/customer/models.py
  2. 2
      project/customer/views/profile.py
  3. 2
      project/static/css/style.css
  4. BIN
      project/static/img/upload-stamp.png
  5. 2
      project/templates/customer/profile/edit.html

@ -18,7 +18,7 @@ from project.myauth.models import DokUser
PROFILE_IMAGES_UPLOAD_DIR = 'customer/profile/' # куда сохранять загруженные изображения
BOSS_SIGN_IMG_SIZE = (159, 65)
GLAVBUH_SIGN_IMG_SIZE = (159, 65)
STAMP_IMG_SIZE = (121, 121)
STAMP_IMG_SIZE = (180, 180)
LOGO_SIZE = (351, 121)

@ -117,7 +117,7 @@ def profile_edit(request):
def tmp_upload(request):
SIZES = {'id_boss_sign': '159x65', 'id_glavbuh_sign': '159x65', 'id_stamp': '121x121', 'id_logo': '351x121'}
SIZES = {'id_boss_sign': '159x65', 'id_glavbuh_sign': '159x65', 'id_stamp': '180x180', 'id_logo': '351x121'}
elm_id = request.REQUEST['elm_id']
file_ = request.FILES.values()[0]
if not file_.content_type.startswith('image'):

@ -580,7 +580,7 @@ tr.doc-row:hover {cursor:pointer;}
#id_boss_surname, #id_boss_name, #id_boss_midname, #id_glavbuh_surname, #id_glavbuh_name, #id_glavbuh_midname{width:157px;}
#boss_sign, #glavbuh_sign {width:159px;height:65px;float:left;overflow:hidden;}
#glavbuh_sign {margin-left:30px;}
#stamp .profile_field {width:121px;height:121px;}
#stamp .profile_field {width:180px;height:180px;}
#logo .profile_field {width:351px;height:121px;}
.del_image {display:block;width:27px;height:20px;background:url(../img/icon-delete.png)7px center no-repeat;position:absolute;top:0;right:0;}
.rel {position:relative;}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 607 B

@ -48,7 +48,7 @@
{% if profile.is_org %}
<div id="name" class="field">
<div style="profile_label">
<div class="profile_label">
Краткое название организации{% if form.name.field.required %} <span class="required">*</span>{% endif %}
</div>
<div class="profile_field long-input">

Loading…
Cancel
Save