credits_verbessert
This commit is contained in:
@@ -253,29 +253,38 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex flex-col max-w-full">
|
||||
Credits:
|
||||
<p class="text-gray-600 mt-2 ">Credits: </p>
|
||||
{% if quiz.credits %}
|
||||
<p class="text-gray-600 mb-2 w-full break-words">
|
||||
<span class="font-bold break-words">{{ quiz.credits }}</span>
|
||||
<p class="text-blue-500 mb-2 w-full break-words">
|
||||
<span class="font-bold break-words italic">{{ quiz.credits }}</span>
|
||||
<span class="font-normal break-words text-gray-600">(Credits für das Quiz)</span>
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="text-gray-500">Keine Credits für das Quizformular vorhanden!</p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col max-w-full">
|
||||
<ul class="space-y-2">
|
||||
{% regroup questions by credits as grouped_credits %}
|
||||
{% if grouped_credits|length == 1 and not grouped_credits.0.grouper %}
|
||||
<li class="text-gray-500">Keine Credits für die Fragen vorhanden!</li>
|
||||
{% else %}
|
||||
{% for question in questions %}
|
||||
{% if question.credits %}
|
||||
<li class="text-gray-600 mb-2 w-full break-words font-bold break-words">
|
||||
{{ question.credits }}
|
||||
<span class="font-medium text-gray-500 break-words">(Frage: {{ forloop.counter }})</span>
|
||||
<li class="text-blue-500 mb-2 w-full break-words font-bold break-words ">
|
||||
<span class="italic">{{ question.credits }}</span>
|
||||
<span class="font-normal break-words text-gray-600">(Frage: {{ forloop.counter }})</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user