X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/43116c58e5c56f94ef358a5a17fb13a252e02531..00475040ce64f82be78711a188d40a3abf518af4:/apps/fileupload/templatetags/upload_tags.py diff --git a/apps/fileupload/templatetags/upload_tags.py b/apps/fileupload/templatetags/upload_tags.py index aefce2e3..a924a603 100644 --- a/apps/fileupload/templatetags/upload_tags.py +++ b/apps/fileupload/templatetags/upload_tags.py @@ -1,7 +1,9 @@ +# -*- coding: utf-8 -*- from django import template register = template.Library() + @register.simple_tag def upload_js(): return """ @@ -13,10 +15,15 @@ def upload_js(): {%=file.name%} {%=o.formatFileSize(file.size)%} {% if (file.error) { %} - {%=locale.fileupload.error%} {%=locale.fileupload.errors[file.error] || file.error%} + + {%=locale.fileupload.error%} + {%=locale.fileupload.errors[file.error] || file.error%} + {% } else if (o.files.valid && !i) { %} -
+
+
+
{% if (!o.options.autoUpload) { %}