* refactors large forms.py into forms/modalForms.py and forms/forms.py
* refactors custom input fields into intervention/inputs.py
This commit is contained in:
2021-09-27 11:45:13 +02:00
parent e94dbbd3c8
commit 877a1ca335
7 changed files with 772 additions and 754 deletions

15
intervention/inputs.py Normal file
View File

@@ -0,0 +1,15 @@
from django import forms
class DummyFilterInput(forms.HiddenInput):
""" A dummy input widget
Does not render anything. Can be used to keep filter logic using django_filter without having a pre defined
filter widget being rendered to the template.
"""
template_name = "konova/custom_widgets/dummy-filter-input.html"
class TextToClipboardInput(forms.TextInput):
template_name = "konova/custom_widgets/text-to-clipboard-input.html"