From c3c570276244f89038797bc8a463af88bd4cfd5c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 4 Sep 2024 15:02:30 +0100 Subject: wip: sorting out forms for adding Engagements --- engagements/forms.py | 1 + 1 file changed, 1 insertion(+) (limited to 'engagements/forms.py') diff --git a/engagements/forms.py b/engagements/forms.py index a1c3c44..e3ac85a 100644 --- a/engagements/forms.py +++ b/engagements/forms.py @@ -186,6 +186,7 @@ class EngagementCreateForm(forms.ModelForm): "proposed_start_date", "proposed_end_date", "engagement_type", + "external_party", "officers", ] labels = { -- cgit v1.2.3 From 707128730185f67d24ccfed2a9c7056129478fec Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 5 Sep 2024 12:02:02 +0100 Subject: Effort form looking much better --- engagements/forms.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engagements/forms.py') diff --git a/engagements/forms.py b/engagements/forms.py index e3ac85a..2532892 100644 --- a/engagements/forms.py +++ b/engagements/forms.py @@ -16,6 +16,10 @@ class EngagementEffortReportingCreateForm(forms.ModelForm): class Meta: model = EngagementEffort + help_texts = { + "is_planned": ("To distinguish planned events from retrospective recording."), + "officers": ("Include yourself here but you can also add effort for your colleagues.") + } fields = [ 'is_planned', 'proposed_start_date', @@ -63,7 +67,7 @@ class EngagementEffortRegulationCreateForm(forms.ModelForm): "notes", ] help_texts = { - "is_planned": ("
To distinguish planned events from retrospective recording") + "is_planned": ("To distinguish planned events from retrospective recording.") } widgets = { "proposed_start_date": forms.DateTimeInput( @@ -93,7 +97,7 @@ class EngagementEffortPlanningCreateForm(forms.ModelForm): "notes", ] help_texts = { - "is_planned": ("
To distinguish planned events from retrospective recording") + "is_planned": ("To distinguish planned events from retrospective recording.") } widgets = { "proposed_start_date": forms.DateTimeInput( @@ -126,6 +130,9 @@ class EngagementEffortTravelCreateForm(forms.ModelForm): "proposed_start_date": forms.DateTimeInput(attrs={"type": "datetime-local"}), "proposed_end_date": forms.DateTimeInput(attrs={"type": "datetime-local"}), } + help_texts = { + "is_planned": ("To distinguish planned events from retrospective recording.") + } class EngagementEffortCreateForm(forms.ModelForm): -- cgit v1.2.3