fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
local changes from the server
[edumed.git]
/
wtem
/
templates
/
wtem
/
exercises
/
edumed_wybor.html
diff --git
a/wtem/templates/wtem/exercises/edumed_wybor.html
b/wtem/templates/wtem/exercises/edumed_wybor.html
index
d94995d
..
d035f21
100644
(file)
--- a/
wtem/templates/wtem/exercises/edumed_wybor.html
+++ b/
wtem/templates/wtem/exercises/edumed_wybor.html
@@
-1,21
+1,32
@@
<div class="exercise exercise-wtem wybor" data-type="wybor" data-id="{{exercise.id}}">
<div class="exercise exercise-wtem wybor" data-type="wybor" data-id="{{exercise.id}}">
- <h3>Zadanie {{no}}</h3>
+{% if not exercise.continuation %}
+<h3>Zadanie {{exercise.id_show|default:exercise.id}} ({{ exercise.max_points }} pkt)</h3>
+{% endif %}
+ {% autoescape off %}
<div class="description">
{% for para in exercise.description %}
<p class="paragraph">
{{para}}
</p>
{% endfor %}
<div class="description">
{% for para in exercise.description %}
<p class="paragraph">
{{para}}
</p>
{% endfor %}
+ <span class="instruction">
+ {% if exercise.answer|length == 1 %}
+ Tylko jedna odpowiedź jest prawidłowa.
+ {% else %}
+ Zaznacz wszystkie prawidłowe odpowiedzi.
+ {% endif %}
+ </span>
</div>
</div>
+ {% endautoescape %}
<div class="question" data-no="1">
<ol class="lista num">
{% for option in exercise.options %}
<li class="question-piece" data-name="{{option.id}}">
<div class="question" data-no="1">
<ol class="lista num">
{% for option in exercise.options %}
<li class="question-piece" data-name="{{option.id}}">
- <input type="{% if exercise.answer|length == 1 %}radio{% else %}checkbox{% endif %}" name="{% if exercise.answer|length == 1 %}e{{no}}{% else %}
q1_{{option.id}}{% endif %}" id="q1
_{{option.id}}">
- <label for="
{% if exercise.answer|length == 1 %}e{{no}}{% else %}q1_{{option.id}}{% endif %
}">{{option.text}}</label>
+ <input type="{% if exercise.answer|length == 1 %}radio{% else %}checkbox{% endif %}" name="{% if exercise.answer|length == 1 %}e{{no}}{% else %}
e{{no}}_{{option.id}}{% endif %}" id="e{{no}}
_{{option.id}}">
+ <label for="
e{{no}}_{{option.id}
}">{{option.text}}</label>
</li>
{% endfor %}
</ol>
</li>
{% endfor %}
</ol>
@@
-30,8
+41,8
@@
</p>
{% endfor %}
</div>
</p>
{% endfor %}
</div>
- <textarea style="width: 100%; margin-top:10px;" rows="
10
"></textarea>
+ <textarea style="width: 100%; margin-top:10px;" rows="
{{exercise.open_part_rows|default:10}}
"></textarea>
</div>
{% endif %}
</div>
{% endif %}
-</div>
\ No newline at end of file
+</div>