From: Aleksander Ćukasz <aleksander.lukasz@nowoczesnapolska.org.pl> Date: Fri, 8 Nov 2013 10:24:36 +0000 (+0100) Subject: Support for inline items in question of type "przyporzadkuj" X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/33d0f10afc633611ef2578f91a98f9baeb8e82c3?hp=779388f1f9ac282a73b70a37910cee109bc15047 Support for inline items in question of type "przyporzadkuj" --- diff --git a/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html b/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html index 5ad558e..f4eac19 100644 --- a/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html +++ b/wtem/templates/wtem/exercises/edumed_przyporzadkuj.html @@ -32,7 +32,7 @@ <p class="paragraph">{{exercise.items_name|capfirst}}:</p> </div> - <ul class="lista punkt subject" data-target="kategorie"> + <ul class="lista punkt subject {% if exercise.items_inline %}wtem-items-inline{% endif %}" data-target="kategorie"> {% for item in exercise.items %} {% comment %} data-solution set to single bogus value only to indicate that this piece has no multiple solutions, not used otherwise (see: is_multiple in edumed.coffee). diff --git a/wtem/templates/wtem/main.html b/wtem/templates/wtem/main.html index 3473d3b..952b3e9 100644 --- a/wtem/templates/wtem/main.html +++ b/wtem/templates/wtem/main.html @@ -26,6 +26,9 @@ text-align: center; font-weight: bold; } + .wtem-items-inline li { + display: inline-block; + } </style>