Kritik zusammengefasst
This commit is contained in:
@@ -164,15 +164,17 @@ def critisize_quiz(request, pk):
|
|||||||
|
|
||||||
|
|
||||||
critic_type = request.POST.get("critic")
|
critic_type = request.POST.get("critic")
|
||||||
|
|
||||||
CRITICISM_MAP = {
|
CRITICISM_MAP = {
|
||||||
"content_error": "Die Frage oder die Antworten enthalten einen inhaltlichen Fehler.",
|
"content_error": "inhaltlicher Fehler",
|
||||||
"spelling_error": "Die Frage oder die Antworten enthalten (einen oder mehrere) Rechtschreibfehler.",
|
"spelling_error": "Rechtschreibfehler oder Grammatikfehler",
|
||||||
"logic_error": "Die Frage macht keinen Sinn oder ist nur sehr schwer zu verstehen.",
|
"logic_error": "umständliche oder unsinnige Formulierung",
|
||||||
"inappropriate_error": "Die Frage, die Antworten oder Bilder sind unangemessen.",
|
"inappropriate_error": "unangemessen",
|
||||||
"not_completed_error":"Die Antworten sind unvollständig oder es wurde keine richtige Antwort ausgewählt.",
|
"not_completed_error": "unvollständig",
|
||||||
"quiz_error":"Das Quiz(formular) selbst ist unangebracht, falsch oder nicht verständlich."
|
"source_error": "Quellen unvollständig",
|
||||||
}
|
"quiz_error": "Quiz als \"öffentliches Quiz\" ungeeignet"}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,25 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="flex items-center justify-center lg:justify-start gap-4 mt-4 flex-wrap">
|
<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 %}
|
{% if quiz.user_id == request.user %}
|
||||||
<!-- Edit -->
|
<!-- Edit -->
|
||||||
|
|
||||||
@@ -39,24 +58,6 @@
|
|||||||
{% endif %}
|
{% 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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -571,10 +572,10 @@
|
|||||||
</p>
|
</p>
|
||||||
<select name="question_id" required
|
<select name="question_id" required
|
||||||
class="w-full rounded-lg border-gray-300 p-2 dark:bg-gray-800 dark:text-white">
|
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">
|
<option value="whole_quiz">
|
||||||
Kritik am Quiz(formular) {{ quiz.name|truncatechars:60 }}
|
allgemeine Kritik am Quiz {{ quiz.name|truncatechars:60 }}
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
{% for question in questions %}
|
{% for question in questions %}
|
||||||
@@ -588,26 +589,30 @@
|
|||||||
<option value="">Was ist Ihre Kritik?</option>
|
<option value="">Was ist Ihre Kritik?</option>
|
||||||
|
|
||||||
<option value="content_error">
|
<option value="content_error">
|
||||||
Die Frage oder die Antworten enthalten einen inhaltlichen Fehler.
|
inhaltlicher Fehler
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<option value="spelling_error">
|
<option value="spelling_error">
|
||||||
Die Frage oder die Antworten enthalten (einen oder mehrere) Rechtschreibfehler.
|
Rechtschreibfehler oder Grammatikfehler
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<option value="logic_error">
|
<option value="logic_error">
|
||||||
Die Frage macht keinen Sinn oder ist nur sehr schwer zu verstehen.
|
umständliche oder unsinnige Formulierung
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<option value="inappropriate_error">
|
<option value="inappropriate_error">
|
||||||
Die Frage, die Antworten oder Bilder sind unangemessen.
|
unangemessen
|
||||||
</option>
|
</option>
|
||||||
<option value="not_completed_error">
|
<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>
|
||||||
<option value="quiz_error">
|
<option value="quiz_error">
|
||||||
Das Quiz(formular) selbst ist unangebracht, falsch oder nicht verständlich.
|
Quiz als "öffentliches Quiz" ungeeignet
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<button type="submit" class="inline-flex items-center
|
<button type="submit" class="inline-flex items-center
|
||||||
|
|||||||
Reference in New Issue
Block a user