diff --git a/django/library/forms.py b/django/library/forms.py index b4d711c..f455876 100644 --- a/django/library/forms.py +++ b/django/library/forms.py @@ -6,6 +6,14 @@ class QuizForm(forms.ModelForm): model = QivipQuiz fields = ['name', 'description', 'status', 'category','difficulty','credits'] + def __init__(self, *args, **kwargs): + super(QuizForm, self).__init__(*args, **kwargs) + for field in self.fields.values(): + field.widget.attrs.update({ + 'class': 'dark:bg-[#2a2f3a]! dark:text-white' + }) + + class QuestionForm(forms.ModelForm): class Meta: model = QivipQuestion @@ -34,5 +42,5 @@ class QuizFilterForm(forms.Form): required=False, label="Kategorie", widget=forms.Select(attrs={ - 'class': 'border-2 border-gray-300 rounded-lg p-2 w-full' + 'class': 'border-2 border-gray-300 rounded-lg p-2 w-full dark:bg-[#2a2f3a] dark:text-white' })) \ No newline at end of file diff --git a/django/static/css/t-input.css b/django/static/css/t-input.css index 726280d..666e567 100644 --- a/django/static/css/t-input.css +++ b/django/static/css/t-input.css @@ -17,7 +17,7 @@ a.qp-a-button-small { .register input{@apply p-3 rounded-full bg-gray-200 focus:scale-105 transition duration-200 font-black w-full;} .input-group { - @apply flex flex-col gap-4 max-w-md mx-auto p-6 bg-white rounded-xl shadow-lg; + @apply flex flex-col gap-4 max-w-md mx-auto p-6 bg-white rounded-xl shadow-lg; } .input-group form { diff --git a/django/templates/404.html b/django/templates/404.html index bdb7592..da27217 100644 --- a/django/templates/404.html +++ b/django/templates/404.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block content %} -
Ups, die angeforderte Seite wurde nicht gefunden. Überprüfen Sie die URL oder kehren Sie zur Startseite zurück.
+Ups, die angeforderte Seite wurde nicht gefunden. Überprüfen Sie die URL oder kehren Sie zur Startseite zurück.