diff options
author | MR Lemon <matt@matthewlemon> | 2020-04-24 17:46:33 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-04-24 17:46:33 +0100 |
commit | 301154e0a48ea2e2966afa92912317367dfcbe1b (patch) | |
tree | 5dc8bb07a2ab7e3685b6f5b1ea3903fe13ddc9c7 /ctrack/organisations/forms.py | |
parent | a03fdb0731a6cd5d41a05ce7d3e3b79e280248de (diff) |
much nicer create organisation form
Diffstat (limited to 'ctrack/organisations/forms.py')
-rw-r--r-- | ctrack/organisations/forms.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ctrack/organisations/forms.py b/ctrack/organisations/forms.py index 63291a5..4234a07 100644 --- a/ctrack/organisations/forms.py +++ b/ctrack/organisations/forms.py @@ -1,5 +1,5 @@ from crispy_forms.helper import FormHelper -from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit, Button +from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit, Button, Field from django import forms from django.urls import reverse @@ -13,8 +13,8 @@ class OrganisationCreateForm(forms.ModelForm): self.helper = FormHelper(self) self.helper.layout = Layout( Fieldset( - f"Create a new Organisation", - "name", + "", + Field("name", css_class="form-control-lg"), "submode", "oes", "designation_type", @@ -38,3 +38,9 @@ class OrganisationCreateForm(forms.ModelForm): labels = { "oes": "OES" } + help_texts = { + "submode": "e.g. Rail Maintenance, TOC, etc...", + "updated_by": "Name of staff member/inspector creating this record", + "active": "Is this company an active participant in the NIS compliance regime?", + "designation_type": "This is probably defined in the Reguation", + } |