diff --git a/geotrek/maintenance/forms.py b/geotrek/maintenance/forms.py index c65a772a63..3374511df0 100644 --- a/geotrek/maintenance/forms.py +++ b/geotrek/maintenance/forms.py @@ -64,8 +64,15 @@ class InterventionForm(CommonForm): topology = TopologyField(label="") length = FloatField(required=False, label=_("Length")) - project = forms.ModelChoiceField(required=False, label=_("Project"), - queryset=Project.objects.existing()) + project = forms.ModelChoiceField( + required=False, label=_("Project"), + queryset=Project.objects.existing() + ) + end_date = forms.DateField( + required=False, + widget=forms.DateInput(attrs={"data-date-orientation": "bottom auto"}), + ) + geomfields = ['topology'] leftpanel_scrollable = False diff --git a/geotrek/maintenance/templates/maintenance/intervention_form.html b/geotrek/maintenance/templates/maintenance/intervention_form.html index 4f00bbe500..4a888ec7c4 100644 --- a/geotrek/maintenance/templates/maintenance/intervention_form.html +++ b/geotrek/maintenance/templates/maintenance/intervention_form.html @@ -24,12 +24,6 @@ {{ block.super }}