From: Jan Szejko Date: Thu, 16 Nov 2017 11:05:58 +0000 (+0100) Subject: fix numbering bug X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/560e0675b6de7796c83701974b2333dcdf589fed?ds=inline fix numbering bug --- diff --git a/wtem/templates/wtem/exercises/edumed_prawdafalsz.html b/wtem/templates/wtem/exercises/edumed_prawdafalsz.html index 67bf0ae..2b1802b 100644 --- a/wtem/templates/wtem/exercises/edumed_prawdafalsz.html +++ b/wtem/templates/wtem/exercises/edumed_prawdafalsz.html @@ -1,6 +1,8 @@
- {% include "wtem/exercises/exercise_no.html" %} + {% if no %} + {% include "wtem/exercises/exercise_no.html" %} + {% endif %}
diff --git a/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html b/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html index bdb17af..6f6ac21 100644 --- a/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html +++ b/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html @@ -1,6 +1,8 @@
- {% include "wtem/exercises/exercise_no.html" %} + {% if no %} + {% include "wtem/exercises/exercise_no.html" %} + {% endif %}
diff --git a/wtem/templates/wtem/exercises/edumed_uporzadkuj.html b/wtem/templates/wtem/exercises/edumed_uporzadkuj.html index 200271e..ba05c50 100644 --- a/wtem/templates/wtem/exercises/edumed_uporzadkuj.html +++ b/wtem/templates/wtem/exercises/edumed_uporzadkuj.html @@ -1,6 +1,8 @@
- {% include "wtem/exercises/exercise_no.html" %} + {% if no %} + {% include "wtem/exercises/exercise_no.html" %} + {% endif %}
diff --git a/wtem/templates/wtem/exercises/edumed_wybor.html b/wtem/templates/wtem/exercises/edumed_wybor.html index 2ac1e2c..0a87aca 100644 --- a/wtem/templates/wtem/exercises/edumed_wybor.html +++ b/wtem/templates/wtem/exercises/edumed_wybor.html @@ -1,6 +1,9 @@
- {% include "wtem/exercises/exercise_no.html" %} + {% if no %} + {% include "wtem/exercises/exercise_no.html" %} + {% endif %} + {% autoescape off %}
{% for para in exercise.description %} diff --git a/wtem/templates/wtem/exercises/edumed_wybor_auto.html b/wtem/templates/wtem/exercises/edumed_wybor_auto.html index edd9dad..0cd51f0 100644 --- a/wtem/templates/wtem/exercises/edumed_wybor_auto.html +++ b/wtem/templates/wtem/exercises/edumed_wybor_auto.html @@ -1,6 +1,8 @@
- {% include "wtem/exercises/exercise_no.html" %} + {% if no %} + {% include "wtem/exercises/exercise_no.html" %} + {% endif %} {% autoescape off %}
{% for para in exercise.description %} diff --git a/wtem/templates/wtem/exercises/file_upload.html b/wtem/templates/wtem/exercises/file_upload.html index b452070..a5c3782 100644 --- a/wtem/templates/wtem/exercises/file_upload.html +++ b/wtem/templates/wtem/exercises/file_upload.html @@ -1,6 +1,8 @@
- {% include "wtem/exercises/exercise_no.html" %} + {% if no %} + {% include "wtem/exercises/exercise_no.html" %} + {% endif %}
{% for para in exercise.description %} diff --git a/wtem/templates/wtem/exercises/open.html b/wtem/templates/wtem/exercises/open.html index c30a5b0..3f771fb 100644 --- a/wtem/templates/wtem/exercises/open.html +++ b/wtem/templates/wtem/exercises/open.html @@ -1,6 +1,8 @@
- {% include "wtem/exercises/exercise_no.html" %} + {% if no %} + {% include "wtem/exercises/exercise_no.html" %} + {% endif %}
{% autoescape off %} diff --git a/wtem/templates/wtem/single.html b/wtem/templates/wtem/single.html index 3380145..8bb12bd 100644 --- a/wtem/templates/wtem/single.html +++ b/wtem/templates/wtem/single.html @@ -40,9 +40,10 @@
+{% include 'wtem/exercises/exercise_no.html' %} {% cache 300 wtem exercise.id %} {% with 'wtem/exercises/'|add:exercise.type|add:'.html' as template_name %} -{% include template_name with exercise=exercise %} +{% include template_name with exercise=exercise no='' %} {% endwith %} {% endcache %}