{% extends 'base.html' %} {% block content %} {% load static %}
Neues Quiz erstellen
Suche und Filter zurücksetzen

Filter

Minimale Anzahl an Fragen {{ form.min_amout_questions }} Maximale Anzahl an Fragen {{ form.max_amout_questions }} von User {{ form.user }}
{% if filter_my_quizzes %}

Eigene Quiz

{% for quiz in filter_my_quizzes %}

{{ quiz.name }}

{{ quiz.description }}
Schwierigkeit: {{ quiz.difficulty }}
Anzahl der Fragen: {{ quiz.question.count }}
Status: {{ quiz.status }}
Bewertung: {% for i in '12345'|make_list %} {% if forloop.counter <= quiz.average_rating|floatformat:0|add:0 %} {% else %} {% endif %} {% endfor %} ({{ quiz.rating_count }})

{% if quiz.authors.all %} Autor(en): {% for author in quiz.authors.all %} {{ author.username }}{% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %}

{% endfor %}
{% if filter_my_quizzes|length > 1 %}
{% endif %}
{% endif %} {% if filter_other_quizzes %}

Quiz von anderen Nutzern

{% for quiz in filter_other_quizzes %}

{{ quiz.name }}

{{ quiz.description }}
Schwierigkeit: {{ quiz.difficulty }}
Anzahl der Fragen: {{ quiz.question.count }}
Erstellt am: {{ quiz.creation_date }}

{% if quiz.original_creator %}

Ursprünglich erstellt von: {{ quiz.original_creator }}

{% endif %}
{% endfor %}
{% if filter_other_quizzes|length > 1 %}
{% endif %}
{% endif %} {% if not filter_other_quizzes and not filter_my_quizzes %}
Es wurde kein passendes Quiz gefunden!
{% endif %} {% endblock %}