diff --git a/assets/css/extra.css b/assets/css/extra.css index c443207..ddde16f 100644 --- a/assets/css/extra.css +++ b/assets/css/extra.css @@ -145,3 +145,7 @@ display: block; overflow: auto; } + +.-green-glyphicon.glyphicon.glyphicon-question-sign { + color: green; +} diff --git a/common/views.py b/common/views.py index 7dce5a1..f1be61c 100644 --- a/common/views.py +++ b/common/views.py @@ -9,6 +9,7 @@ from django.shortcuts import render, redirect from django.template.loader import get_template, render_to_string from django.views.generic import View, DetailView from registration.backends.default.views import RegistrationView +from sorl.thumbnail import get_thumbnail import json import jsonschema @@ -96,7 +97,7 @@ class LiveImageUploadCreateView(NoCsrfMixin, LoginRequiredMixin, View): 'name': live_img.file.name, 'size': live_img.file.size, 'url': live_img.file.url, - 'thumbnailUrl': live_img.file.url, + 'thumbnailUrl': get_thumbnail(live_img.file, '235x224', crop='center').url, 'deleteUrl': reverse('common:live-image-upload-delete', kwargs={'pk': live_img.pk}), 'deleteType': 'POST', }]}) diff --git a/projects/templates/customer_project_create.html b/projects/templates/customer_project_create.html index b5a175f..17396c2 100644 --- a/projects/templates/customer_project_create.html +++ b/projects/templates/customer_project_create.html @@ -24,13 +24,13 @@
{{ form.non_field_errors }}
{% endif %} -
-

Название заказа {{ form.name.errors.as_text }}

+
+

Название заказа {{ form.name.errors.as_text }}

-
-

Подробно опишите задание {{ form.text.errors.as_text }}

+
+

Подробно опишите задание {{ form.text.errors.as_text }}

@@ -52,8 +52,8 @@
-

Тип работы {{ form.work_type.errors.as_text }}

-
+

Тип работы {{ form.work_type.errors.as_text }}

+
{% for id, text in form.work_type.field.choices %}