diff options
author | MR Lemon <matt@matthewlemon> | 2020-05-01 16:19:04 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-05-01 16:19:04 +0100 |
commit | efde7c98c202405c4bbbd9d8832f3f92fc402468 (patch) | |
tree | 72b9ef973f52e36ed3f1e909e9db0c7325ea21db /ctrack/organisations/forms.py | |
parent | 089eb10d5023e92969b72561baca32a9d730f0c6 (diff) |
step 1 of form wizard done
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/forms.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctrack/organisations/forms.py b/ctrack/organisations/forms.py index 0903649..d9495f8 100644 --- a/ctrack/organisations/forms.py +++ b/ctrack/organisations/forms.py @@ -12,14 +12,17 @@ class OrganisationCreateForm(forms.ModelForm): self.fields["name"].widget.attrs["class"] = "form-control" self.fields["submode"].widget.attrs["class"] = "form-control" self.fields["oes"].widget.attrs["class"] = "form-check-input" + self.fields["active"].widget.attrs["class"] = "form-check-input" self.fields["designation_type"].widget.attrs["class"] = "form-control" self.fields["registered_company_name"].widget.attrs["class"] = "form-control" + self.fields["registered_company_number"].widget.attrs["class"] = "form-control" class Meta: model = Organisation fields = ["name", "submode", "oes", "designation_type", "registered_company_name", "registered_company_number", "updated_by", "comments", "active"] + # This doesn't have any effect when using the form wizard labels = { "oes": "OES" } |