diff --git a/project/customer/models.py b/project/customer/models.py index 0dbb5b2..1778593 100644 --- a/project/customer/models.py +++ b/project/customer/models.py @@ -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) diff --git a/project/customer/views/profile.py b/project/customer/views/profile.py index 3281cb9..3ca81d2 100644 --- a/project/customer/views/profile.py +++ b/project/customer/views/profile.py @@ -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'): diff --git a/project/static/css/style.css b/project/static/css/style.css index bdc4651..2457c7a 100644 --- a/project/static/css/style.css +++ b/project/static/css/style.css @@ -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;} diff --git a/project/static/img/upload-stamp.png b/project/static/img/upload-stamp.png index 51a3e7b..52c9ad5 100644 Binary files a/project/static/img/upload-stamp.png and b/project/static/img/upload-stamp.png differ diff --git a/project/templates/customer/profile/edit.html b/project/templates/customer/profile/edit.html index 6c91c65..493609f 100644 --- a/project/templates/customer/profile/edit.html +++ b/project/templates/customer/profile/edit.html @@ -48,7 +48,7 @@ {% if profile.is_org %}
-
+
Краткое название организации{% if form.name.field.required %} *{% endif %}