From 3b37bd833833bbc58b8f6668acd40629ff646c67 Mon Sep 17 00:00:00 2001 From: nik8 Date: Sat, 27 Sep 2025 19:06:44 +0200 Subject: [PATCH] Fix_Schrift + request bei requirements --- django/library/forms.py | 3 ++- django/static/css/t-input.css | 3 +++ django/templates/library/form.html | 10 ++++------ requirements.txt | 3 ++- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/django/library/forms.py b/django/library/forms.py index f455876..95b3c40 100644 --- a/django/library/forms.py +++ b/django/library/forms.py @@ -10,8 +10,9 @@ class QuizForm(forms.ModelForm): super(QuizForm, self).__init__(*args, **kwargs) for field in self.fields.values(): field.widget.attrs.update({ - 'class': 'dark:bg-[#2a2f3a]! dark:text-white' + 'class': 'dark:bg-[#2a2f3a]! dark:text-white!' }) + class QuestionForm(forms.ModelForm): diff --git a/django/static/css/t-input.css b/django/static/css/t-input.css index 666e567..bc9d632 100644 --- a/django/static/css/t-input.css +++ b/django/static/css/t-input.css @@ -3,6 +3,9 @@ qp-container { @apply max-w-xl w-full mx-auto; } +.dark-form label { + @apply dark:text-white!; +} nav div ul.qp-nav-list li { @apply text-white hover:scale-110 hover:border-b-2 hover:border-white transition duration-200; diff --git a/django/templates/library/form.html b/django/templates/library/form.html index 8ea57b9..78c547c 100644 --- a/django/templates/library/form.html +++ b/django/templates/library/form.html @@ -2,14 +2,12 @@ {% block content %} - + + +
-
+ {% csrf_token %} {{ form.as_p }} diff --git a/requirements.txt b/requirements.txt index 91ff057..376bf71 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,5 @@ channels_redis python-dotenv # Production server safety qrcode~=7.4.2 reportlab~=4.2.0 -pip-licenses ~= 5.0.0 \ No newline at end of file +pip-licenses ~= 5.0.0 +requests \ No newline at end of file -- 2.49.1