aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/forms.py')
-rw-r--r--ctrack/caf/forms.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ctrack/caf/forms.py b/ctrack/caf/forms.py
index 9847f01..4a03213 100644
--- a/ctrack/caf/forms.py
+++ b/ctrack/caf/forms.py
@@ -22,6 +22,10 @@ class ApplicableSystemCreateFromCafForm(forms.Form):
function = forms.CharField(widget=forms.Textarea)
organisation = forms.ModelChoiceField(queryset=Organisation.objects.all())
caf = forms.ModelChoiceField(queryset=CAF.objects.all())
+ dft_categorisation = forms.ChoiceField(
+ choices=ApplicableSystem.SYSTEM_CATEGORISATION,
+ help_text="Refer to documentation for description of these criteria",
+ )
def __init__(self, *args, **kwargs):
# We must pop the kwargs before we pass to super()
@@ -38,6 +42,7 @@ class ApplicableSystemCreateFromCafForm(forms.Form):
"",
Field("name", css_class="form-control-lg"),
"function",
+ Field("dft_categorisation", css_class="form-control-lg",),
Hidden("caf", caf_id),
Hidden("organisation", org_id),
),
@@ -52,6 +57,12 @@ class ApplicableSystemCreateFromCafForm(forms.Form):
),
)
+ class Meta:
+ model = ApplicableSystem
+ labels = {
+ "dft_categorisation": "DFT CATEGORISATION",
+ }
+
class ApplicableSystemCreateFromOrgForm(forms.Form):
name = forms.CharField(max_length=255)