Inform about file size limit
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 15 Nov 2013 12:21:19 +0000 (13:21 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 15 Jan 2014 10:28:03 +0000 (11:28 +0100)
wtem/templates/wtem/exercises/file_upload.html

index 78ce64f..0e6e49a 100644 (file)
@@ -10,6 +10,9 @@
         {% endfor %}
     </div>
 
         {% endfor %}
     </div>
 
+    {% if exercise.max_file_size_string %}
+        <p style="font-weight: bold;">Plik nie powinien być większy niż {{exercise.max_file_size_string}}.</p>
+    {% endif %}
     <div style="margin: 15px auto; width:300px;">
         <input style="float: left;" type="file" name="attachment_for_{{exercise.id}}"/>
         <div style="clear:both;"></div>
     <div style="margin: 15px auto; width:300px;">
         <input style="float: left;" type="file" name="attachment_for_{{exercise.id}}"/>
         <div style="clear:both;"></div>