From 850a028a20c1c09a92861b24c7c007e67e4fc599 Mon Sep 17 00:00:00 2001 From: booblegum Date: Wed, 28 Dec 2016 15:12:26 +0300 Subject: [PATCH] =?UTF-8?q?PR-62=20=D0=9C=D0=BE=D0=B4=D0=B8=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0=D1=86=D0=B8=D1=8F=20=D1=84=D0=BE=D1=80=D0=BC=D1=8B?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=80=D1=82=D1=84=D0=BE=D0=BB=D0=B8=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Создание и редактирование портфолио в одной(новой) форме --- projects/templates/portfolio_create_edit.html | 28 ++++--- projects/views.py | 76 +++++++------------ 2 files changed, 44 insertions(+), 60 deletions(-) diff --git a/projects/templates/portfolio_create_edit.html b/projects/templates/portfolio_create_edit.html index 008cf76..c05446d 100644 --- a/projects/templates/portfolio_create_edit.html +++ b/projects/templates/portfolio_create_edit.html @@ -2,6 +2,7 @@ {% load i18n %} {% load staticfiles %} {% load sass_tags %} +{% load thumbnail %} {% block personal_css %} @@ -113,20 +114,23 @@ ДО 100 ФАЙЛОВ - {% for image in form.photos.field.queryset.all %} - -
-
×
-
- -
-
- - - {% endfor %}
+ {% for image in form.photos.field.queryset.all %} + +
+ +
+
×
+
+ {% thumbnail image.img "250x200" crop="center" as im %} + + {% endthumbnail %} +
+
+ {# #} +
+ {% endfor %}