diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-08-14 14:22:16 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-08-14 14:22:16 +0100 |
commit | b649c79b450cf3845a43374a37a1fc82cbb3a742 (patch) | |
tree | 21c8c514f3af2ae1d04e9767cabd5881173fb406 /ctrack/caf/forms.py | |
parent | fae4983bbea2381708ab1faa4732d2a21831e800 (diff) |
added essential service field to applicablesystem model
Diffstat (limited to 'ctrack/caf/forms.py')
-rw-r--r-- | ctrack/caf/forms.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ctrack/caf/forms.py b/ctrack/caf/forms.py index 594a162..a2623e1 100644 --- a/ctrack/caf/forms.py +++ b/ctrack/caf/forms.py @@ -25,6 +25,11 @@ class ApplicableSystemCreateFromCafForm(forms.Form): function = forms.CharField(widget=forms.Textarea) organisation = forms.ModelChoiceField(queryset=Organisation.objects.all()) caf = forms.ModelChoiceField(queryset=CAF.objects.all()) + essential_service = forms.CharField( + widget=forms.Textarea, + max_length=255, + help_text="Description of the essential service which the system suppports.", + ) dft_categorisation = forms.ChoiceField( choices=ApplicableSystem.SYSTEM_CATEGORISATION, help_text="Refer to documentation for description of these criteria", @@ -50,6 +55,7 @@ class ApplicableSystemCreateFromCafForm(forms.Form): Fieldset( "", Field("name", css_class="form-control-lg"), + "essential_service", "function", "dft_categorisation", "oes_categorisation", @@ -73,6 +79,11 @@ class ApplicableSystemCreateFromOrgForm(forms.Form): function = forms.CharField(widget=forms.Textarea) organisation = forms.ModelChoiceField(queryset=Organisation.objects.all()) caf = forms.ModelChoiceField(queryset=CAF.objects.all()) + essential_service = forms.CharField( + widget=forms.Textarea, + max_length=255, + help_text="Description of the essential service which the system suppports.", + ) dft_categorisation = forms.ChoiceField( choices=ApplicableSystem.SYSTEM_CATEGORISATION, help_text="Refer to documentation for description of these criteria", @@ -96,6 +107,7 @@ class ApplicableSystemCreateFromOrgForm(forms.Form): Fieldset( "", Field("name", css_class="form-control-lg"), + "essential_service", "function", "dft_categorisation", "oes_categorisation", |