Skip to content

Commit

Permalink
include date range picker
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Sep 11, 2024
1 parent bb72e65 commit 2c4aab9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/genlab_bestilling/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# from django.core.exceptions import ValidationError
from django.forms.renderers import BaseRenderer
from django.forms.utils import ErrorList
from formset.ranges import DateRangePicker
from formset.renderers.tailwind import FormRenderer
from formset.utils import FormMixin
from formset.widgets import DualSortableSelector, Selectize
Expand Down Expand Up @@ -54,7 +55,7 @@ class Meta:
"sample_types",
"analysis_types",
"expected_total_samples",
# "analysis_timerange",
"analysis_timerange",
)
widgets = {
"area": Selectize(search_lookup="name_icontains"),
Expand All @@ -67,6 +68,7 @@ class Meta:
),
"sample_types": DualSortableSelector(search_lookup="name_icontains"),
"analysis_types": DualSortableSelector(search_lookup="name_icontains"),
"analysis_timerange": DateRangePicker(),
}


Expand All @@ -78,6 +80,7 @@ class Meta(GenrequestForm.Meta):
"sample_types",
"analysis_types",
"expected_total_samples",
"analysis_timerange",
)

# def clean_species(self) -> dict[str, Any]:
Expand Down

0 comments on commit 2c4aab9

Please sign in to comment.