Kritik zusammengefasst

This commit is contained in:
ben8
2026-02-07 11:33:28 +01:00
parent 543ae87a14
commit d56c9d3419
2 changed files with 41 additions and 34 deletions

View File

@@ -164,15 +164,17 @@ def critisize_quiz(request, pk):
critic_type = request.POST.get("critic")
CRITICISM_MAP = {
"content_error": "Die Frage oder die Antworten enthalten einen inhaltlichen Fehler.",
"spelling_error": "Die Frage oder die Antworten enthalten (einen oder mehrere) Rechtschreibfehler.",
"logic_error": "Die Frage macht keinen Sinn oder ist nur sehr schwer zu verstehen.",
"inappropriate_error": "Die Frage, die Antworten oder Bilder sind unangemessen.",
"not_completed_error":"Die Antworten sind unvollständig oder es wurde keine richtige Antwort ausgewählt.",
"quiz_error":"Das Quiz(formular) selbst ist unangebracht, falsch oder nicht verständlich."
}
"content_error": "inhaltlicher Fehler",
"spelling_error": "Rechtschreibfehler oder Grammatikfehler",
"logic_error": "umständliche oder unsinnige Formulierung",
"inappropriate_error": "unangemessen",
"not_completed_error": "unvollständig",
"source_error": "Quellen unvollständig",
"quiz_error": "Quiz als \"öffentliches Quiz\" ungeeignet"}

View File

@@ -17,6 +17,25 @@
<div class="flex items-center justify-center lg:justify-start gap-4 mt-4 flex-wrap">
<a href="{% url 'library:copy_quiz' quiz.id %}"
class="inline-flex bg-green-100 text-green-800 items-center py-2 px-2 gap-2 rounded-md text-sm lg:text-md hover:border-blue-600 border-2">
duplizieren
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75" />
</svg>
</a>
{% if quiz.questions.count %}
<a href="{% url 'play:create_game' quiz.id %}"
class="inline-flex bg-blue-100 text-blue-800 items-center py-2 px-2 gap-2 rounded-md text-sm lg:text-md hover:border-blue-600 border-2">
spielen
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z" />
</svg>
</a>
{% endif %}
{% if quiz.user_id == request.user %}
<!-- Edit -->
@@ -39,24 +58,6 @@
{% endif %}
<a href="{% url 'library:copy_quiz' quiz.id %}"
class="inline-flex bg-green-100 text-green-800 items-center py-2 px-2 gap-2 rounded-md text-sm lg:text-md hover:border-blue-600 border-2">
duplizieren
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75" />
</svg>
</a>
{% if quiz.questions.count %}
<a href="{% url 'play:create_game' quiz.id %}"
class="inline-flex bg-blue-100 text-blue-800 items-center py-2 px-2 gap-2 rounded-md text-sm lg:text-md hover:border-blue-600 border-2">
spielen
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z" />
</svg>
</a>
{% endif %}
</div>
</div>
@@ -571,10 +572,10 @@
</p>
<select name="question_id" required
class="w-full rounded-lg border-gray-300 p-2 dark:bg-gray-800 dark:text-white">
<option value="">Kritik an einer bestimmten Frage oder am Quiz(formular)?</option>
<option value="">Kritik an einer bestimmten Frage oder am Quiz insgesamt?</option>
<option value="whole_quiz">
Kritik am Quiz(formular) {{ quiz.name|truncatechars:60 }}
allgemeine Kritik am Quiz {{ quiz.name|truncatechars:60 }}
</option>
{% for question in questions %}
@@ -588,26 +589,30 @@
<option value="">Was ist Ihre Kritik?</option>
<option value="content_error">
Die Frage oder die Antworten enthalten einen inhaltlichen Fehler.
inhaltlicher Fehler
</option>
<option value="spelling_error">
Die Frage oder die Antworten enthalten (einen oder mehrere) Rechtschreibfehler.
Rechtschreibfehler oder Grammatikfehler
</option>
<option value="logic_error">
Die Frage macht keinen Sinn oder ist nur sehr schwer zu verstehen.
umständliche oder unsinnige Formulierung
</option>
<option value="inappropriate_error">
Die Frage, die Antworten oder Bilder sind unangemessen.
unangemessen
</option>
<option value="not_completed_error">
Die Antworten sind unvollständig oder es wurde keine richtige Antwort ausgewählt.
unvollständig
</option>
<option value="source_error">
Quellen unvollständig
</option>
<option value="quiz_error">
Das Quiz(formular) selbst ist unangebracht, falsch oder nicht verständlich.
Quiz als "öffentliches Quiz" ungeeignet
</option>
</select>
<button type="submit" class="inline-flex items-center